clEsperanto / pyclesperanto_prototype

GPU-accelerated bio-image analysis focusing on 3D+t microscopy image data
http://clesperanto.net
BSD 3-Clause "New" or "Revised" License
208 stars 44 forks source link

opencl support on google colab broken #300

Open haesleinhuepf opened 1 year ago

haesleinhuepf commented 1 year ago

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 commented 1 year ago

workaround:

cle.select_device("cupy")
haesleinhuepf commented 1 year ago

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 commented 1 year ago

The last options works with some minor modification and ... time :disappointed:

!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: