You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running profiler in WSL for CUDA-enabled Pytorch code, CUDA driver fails to initialize. Specifically, this happens after entering the memray.Tracker context manager.
Run python -m memray run -q -c 'import torch; print(torch.cuda.is_available())'
Memray Version
1.16.0
Python Version
3.12
Operating System
Linux
Anything else?
I checked that this happens exactly in WSL environment. If I try to reproduce this in a Docker container of ubuntu:22.04 image, Docker engine being installed in the same WSL environment, CUDA successfully initializes.
Having read about supported environments, I'm still not quite sure if WSL is supported or not.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
When running profiler in WSL for CUDA-enabled Pytorch code, CUDA driver fails to initialize. Specifically, this happens after entering the
memray.Tracker
context manager.$ python -m memray run -q -c 'import torch; print(torch.cuda.is_available())' False
Expected Behavior
CUDA driver being able to initialize,
Steps To Reproduce
python -m memray run -q -c 'import torch; print(torch.cuda.is_available())'
Memray Version
1.16.0
Python Version
3.12
Operating System
Linux
Anything else?
I checked that this happens exactly in WSL environment. If I try to reproduce this in a Docker container of ubuntu:22.04 image, Docker engine being installed in the same WSL environment, CUDA successfully initializes.
Having read about supported environments, I'm still not quite sure if WSL is supported or not.
The text was updated successfully, but these errors were encountered: