It seems that Google Colab GPU's doesn't come with CUDA Toolkit, how can I install CUDA in Google Colab GPU's. I am getting this error in installing mxnet in Google Colab.
Installing collected packages: mxnet
Successfully installed mxnet-1.2.0
ERROR: Incomplete installation for leveraging GPUs for computations. Please make sure you have CUDA installed and run the following line in your terminal and try again:
pip uninstall -y mxnet && pip install mxnet-cu90==1.1.0
Adjust 'cu90' depending on your CUDA version ('cu75' and 'cu80' are also available). You can also disable GPU usage altogether by invoking turicreate.config.set_num_gpus(0). An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
This solution worked for me in November, 2022. Query the version of Ubuntu that Colab is running on (run in notebook using
!
or in terminal without):Query the current cuda version in Colab (only for comparision):
Next, got to the cuda toolkit archive or latest builds and configure the desired cuda version and os version. The Distribution is
Ubuntu
.Copy the installation instructions:
Change the last line to include your cuda-version e.g.,
apt-get -y install cuda-11-7
. Otherwise a more recent version might be installed.Your cuda version will now be updated: