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

opencl support on google colab broken #300

Open
haesleinhuepf opened this issue Apr 19, 2023 · 3 comments
Open

opencl support on google colab broken #300

haesleinhuepf opened this issue Apr 19, 2023 · 3 comments

Comments

@haesleinhuepf
Copy link
Member

pyclesperanto-prototype doesn't work anymore on google colab

https://forum.image.sc/t/stackview-pyclesperanto-prototype-demo-on-colab-cant-use-gpu/80145/4

@haesleinhuepf
Copy link
Member Author

workaround:

cle.select_device("cupy")

@haesleinhuepf
Copy link
Member Author

One can also try this:

!sudo apt update
!sudo apt purge *nvidia* -y
!sudo apt install nvidia-driver-530 -y

Source: https://stackoverflow.com/questions/76336964/opencl-not-detecting-t4-hardware-accelerator-in-colab/76461740#76461740

@StRigaud
Copy link
Member

The last options works with some minor modification and ... time 😞

!sudo apt update
!sudo apt purge *nvidia* -y
!sudo DEBIAN_FRONTEND=noninteractive apt install nvidia-driver-530 -y

This will take quite some time, mainly the last cmd as it request a reboot which I do not know how it is managed behind but ... works.

image

Possible issues:

  • possible need to run cmd in separated cells
  • possible need to trash and make a new colab if process fail in the middle

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