Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colab is broken #164

Open
eyaler opened this issue Oct 31, 2022 · 1 comment
Open

colab is broken #164

eyaler opened this issue Oct 31, 2022 · 1 comment

Comments

@eyaler
Copy link

eyaler commented Oct 31, 2022

colab is broken due to google removing cuda 10.1 here

this can be fixed by:

!apt-get -o Dpkg::Options::="--force-overwrite" install cuda-10-1 cuda-drivers
import os
os.environ["CUDA_HOME"] = '/usr/local/cuda-10.1'

however if you want to support modern GPUs as A100 you need cuda 11:

!apt-get -o Dpkg::Options::="--force-overwrite" install cuda-11-1
import os
cuda_home = '/usr/local/cuda-11.1'
os.environ["CUDA_HOME"] = cuda_home
with open(os.path.join(cuda_home, 'version.txt'), 'w') as f:
  f.write('CUDA Version 11.1')

I couldn't figure out how to install cudnn, but it works. see e.g. my accessible colab:
https://colab.research.google.com/github/eyaler/avatars4all/blob/master/ganivut.ipynb

@Lolimipsu
Copy link

Thank you for raising this issue @eyaler it was very helpful. this should be pinned or at least put into the colab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants