Before installing CUDA
OS: Linux on ubuntu
There are two things you ought to do before you start to install CUDA in your PC:
1:Make sure you have enough disk space under your / directory;
You can find a great reference here, almost everything about installing cuda is included, and it helps me a lot, thx!
Nevertheless, the diskspace problem hasn’t been brought up in it, and this picture below happened to me.
With the help of gparted, I did the repartition to make sure I have enough space under the / derectory. If this situation happened to you, there is a very useful blog.
Type “df -h” in the terminal, you can get the disk space information. Here are my disk space situation before I try to install, and 3.3G space is far from enough what installing cuda need.
2:Check your GPU type and your nvidia driver version;
Get your GPU type by click the “Details” button in your “System Setting” and here is mine.
Here are some information about my NVIDIA Driver, and you can also get this by typing "nvidia-settings" in the terminal.
You'd better confirm that your NVIDIA Driver version is high enough to run the cuda version you chose, else, the insufficient problem will happen after you install cuda eventually.
I solved this by changing cuda version because my GPU(Guadra P4000) can only support version 390.67 by the time I install cuda. By updating your Nvidia driver version simply will help you to solve this if your GPU is able to support a higher version driver.Go find this support info here , all versions of cuda are aviliable here, and here is the match info:
Remember: if you alreadygot a nvidia driver like I do, then choose n(no) to the question blow when you install cuda:
References:
https://blog.****.net/qlulibin/article/details/78714596