-
Notifications
You must be signed in to change notification settings - Fork 44
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
Jupyter notebook Kernel crashes while using pyclesperanto in Ubuntu 22.04.2 on WSL2, Windows 11 #317
Comments
iirc, pocl just emulates a GPU. In order to get access to the actual GPU from within WSL2, you need to install special NVIDIA drivers. Maybe this link helps (please report back if it does ;-) ): |
I was under the assumption that the GPU setup works fine because I was able to query
Thanks for the help @thawn |
![]() ![]() |
On further digging, I came to know that OpenCL support through CUDA driver in WSL2 is actually an issue and has been listed on the official WSL repository: microsoft/WSL#6951 So for now, pocl-cuda seems to be the only option on WSL2! |
afaik, pocl-cuda is supposed to use the GPU, although the performance may vary. Could you please check with nvidia-smi what the GPU load is, while you are running a pyclesperanto workflow? That way, you could tell if it is using the GPU or not. |
I am trying to run the workflow: https://github.com/clEsperanto/pyclesperanto_prototype/blob/master/demo/tribolium_morphometry/tribolium_morphometry2.ipynb through VS Code on a system with Ubuntu 22.04.2 (Kernel:5.15.90.1-microsoft-standard-WSL2) installed in WSL2 on Windows 11. Initially, I wasn't able to select the GPU even after installing ocl-icd-system. Then, I also installed pocl and this made it possible to select between CPU and GPU. Now I am able to select the device but the Kernel crashes when I try to use any method from pyclesperanto. The same workflow runs without any problem on the host Windows system. The details are given below:
pyclesperanto version: 0.24.1
ocl-icd version: 2.3.1
ocl-icd-system version: 1.0.0
pocl version: 4.0
CPU: AMD Ryzen 9 5900X
GPU: NVIDIA RTX A6000
nvidia-smi version: 510.47.03, driver version: 511.65
Any suggestions on how I can solve this issue?
The text was updated successfully, but these errors were encountered: