How to view the installation path of CUDA on Ubuntu?

To find the installation path of CUDA, you can follow these steps:

  1. Open the terminal window.
  2. Use the following command to find the installation path of CUDA:
dpkg -l | grep cuda
  1. When looking for lines containing “cuda” in the output results, you will typically see package names similar to cuda-xxx-xx.
  2. Use the following command to view the installation path:
dpkg -L 包名

For example, if the installation path is cuda-10-0, you can enter:

dpkg -L cuda-10-0
  1. The terminal will display the installation path of CUDA, where you can find the installed files and directory paths in the output results.

Please note that the above steps are only applicable to CUDA packages installed through dpkg. If you have installed CUDA through other methods, you may need to find the installation path according to the method used.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds