-
Notifications
You must be signed in to change notification settings - Fork 799
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
got the error: out of memory ,when invoke cuda in wsl2. #8447
Comments
Is any one here? |
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
Here is the logs. Thanks. |
Is there anything new? |
Thanks for the logs @before31. Once you get this out of memory error, can you also share the output of |
Any updated? |
How do you fix this problem? |
The problem remains unresolved. |
What is the PC/workstation that you are using? |
CPU The hardware may not support it. |
I am using a Dell precision tower with windows 11 and with 4 quadro rtx 4000 and I am running into the same issue. |
I am experiencing the same issue with windows 11, i7-12700KF, RTX 3070-Ti. Graphs for used memory only reach about half available GPU RAM, before the |
This has something to do with pin_memory on my system with Pytorch. Once i set pin_memory=False i can use all the memory on the GPU. Unfortunately this also reduces the performance quite a bit. Probably something to do with this: Hope a fix is possible. |
Having the same issue, docker under WSL. |
Having the same issue, docker under WSL. |
I have the same pinned memory issue with Ubuntu 18.04 and Cupy. It seems that I can only set a small amount of memory as pinned memory (much smaller than RAM and VRAM). Ulimit states 64 kilobytes is my maximum locked memory, but I can't seem to change this setting to test if this is my problem. Does anyone else have a workaround? Not being able to pin memory makes for a huge performance hit. |
Same problem here. I got an error of "out of gpu memory" when using pin_memory=True of PyTorch on WSL2 (Windows11). |
Hi all! Took me three weekends to solve it. Tried different versions of fixes: built Cuda from scratch, tried different Ubuntu versions, different Windows versions. In the end I swapped Windows 10 -> Windows 11 Pro Yeah, it's not normal to have to do rain dances to work properly under WSL, so it needs a fix. But if you need it urgently, I said what worked for me. |
Got the same issue today with https://github.com/ggerganov/whisper.cpp WSL 2 |
I have the same issue. There is no fix for this? |
Version
Microsoft Windows [版本 10.0.19044.1706]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 20.04
Other Software
nvidia driver (on Windows), version: 512.77
cuda (installed in wsl2, only the cuda tookit, not reinstall nvidia driver in wsl2 ),version:10.2 or 11.6, both are tried, the same error.
Repro Steps
The same application runs well on Windows (Changed the library name).
Expected Behavior
I can invoke cuda in wsl2 normally.
Actual Behavior
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.68.02 Driver Version: 512.77 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:02:00.0 Off | N/A |
| 23% 33C P8 10W / 250W | 541MiB / 11264MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 NVIDIA GeForce ... On | 00000000:03:00.0 Off | N/A |
| 23% 29C P8 11W / 250W | 0MiB / 11264MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 2 NVIDIA GeForce ... On | 00000000:82:00.0 Off | N/A |
| 23% 28C P8 10W / 250W | 0MiB / 11264MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 3 NVIDIA GeForce ... On | 00000000:83:00.0 Off | N/A |
| 23% 27C P8 10W / 250W | 11MiB / 11264MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: