Author |
Message |
zooxitSend message
Joined: 4 Jul 21 Posts: 23 Credit: 10,179,427,498 RAC: 58,487,768 Level
Scientific publications
|
Hi,
I know it might not make much sense but...
Is it possible to run Linux-GPUtasks in an instance of Linux that is running in WSL on Windows 11?
I tried it but only CPU tasks where running. I suppose that WSL-Linux was using the graphic card, since I could run BOINC manager in a GUI form.
Any thoughts?
|
|
|
|
[s]looks like you need to sign up for the Nvidia developer program and request the Nvidia CUDA driver for WSL[/s]
https://developer.nvidia.com/cuda/wsl
EDIT,
no need to sign up for a program, just get the drivers here: https://developer.nvidia.com/cuda/wsl/download
follow the install directions here: https://docs.nvidia.com/cuda/wsl-user-guide/index.html
pay particular attention to section 2.3. only install the driver in the Windows host environment. do not install any driver inside your WSL install.
____________
|
|
|
|
I don't know much as far as the WSL on Windows is concerned but I bet you'll lose on performance even with short tasks on CPU.
I don't know how they have implemented this system on Windows but for other projects I took a step back on reinstalled Win10 dure to lesser performance
Now, be "as close as possible" to the hardware, I'm running Linux waiting for WU to crunch from GPUGRID.
My thought is that WSL is like a kind of a virtualization and therefore you cannot access all functionnalies of your hardware as easily (if only possible) as if it was running as your host (Win11 in this case, your main system).
Why do you think I'm running Ubuntu directly? ;)
I've always wondered if it was at least possible to crunch using CPU with a WSL Linux. Now I don't have to try it anymore, thanks for sharing your experience!
I know it doesn't help you crunching as you'd like.
I just hope someone will confirm (or better, deny, I'd be surprise) what I've said.
Best regards,
micropro
EDIT : my answer come second. Didn't know there was even drivers which could be installed. |
|
|
zooxitSend message
Joined: 4 Jul 21 Posts: 23 Credit: 10,179,427,498 RAC: 58,487,768 Level
Scientific publications
|
Thanks for the replies.
Ian&Steve C.: I will try it next week (busy times now) and report whether it works. |
|
|
Jim1348Send message
Joined: 28 Jul 12 Posts: 819 Credit: 1,591,285,971 RAC: 0 Level
Scientific publications
|
There are new instructions for running GPU's on WSL.
Has anyone tried them for running GPUGrid?
https://docs.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl
I run BOINC on WSL on my Win10 machine (Ryzen 5700X), and it works great. It seems to be as fast as native Ubuntu for the CPU work units. |
|
|
klepelSend message
Joined: 23 Dec 09 Posts: 189 Credit: 4,718,926,093 RAC: 2,173,654 Level
Scientific publications
|
Me too! I run Linux CPDN taskes on WSL2 on two Win10 computers, and it works very well! |
|
|
Jim1348Send message
Joined: 28 Jul 12 Posts: 819 Credit: 1,591,285,971 RAC: 0 Level
Scientific publications
|
I tried those instructions, and BOINC still does not recognize my GTX 1650 Super with the latest Windows drivers, which I think is what they are asking for. But it is not entirely clear that it is supported.
I run WSL2 under Win10 Pro 21H2 (OS Build 19044.1865), and it is running the Linux 5.10.102.1-microsoft-standard-WSL2 kernel.
BOINC does not recognize VirtualBox either, even though that can be installed. It may be a limitation of BOINC. |
|
|
Keith Myers Send message
Joined: 13 Dec 17 Posts: 1340 Credit: 7,656,423,724 RAC: 13,411,734 Level
Scientific publications
|
I don't know anything about WSL on Windows.
My question is . . . do you download and install the Windows CUDA drivers in the WSL environment or . . . the Linux CUDA drivers in the WSL environment? |
|
|
Jim1348Send message
Joined: 28 Jul 12 Posts: 819 Credit: 1,591,285,971 RAC: 0 Level
Scientific publications
|
My question is . . . do you download and install the Windows CUDA drivers in the WSL environment or . . . the Linux CUDA drivers in the WSL environment?
I used the Windows drivers, as per their instructions. That means they have to be installed in the Windows environment. They specifically say not to use the Linux drivers.
|
|
|
Keith Myers Send message
Joined: 13 Dec 17 Posts: 1340 Credit: 7,656,423,724 RAC: 13,411,734 Level
Scientific publications
|
Thanks for that bit of info, Jim. I would have guessed Linux drivers for a Linux environment . . . and been wrong.
So I assume that the Windows CUDA drivers get passed through to the virtual WSL host environment somehow, some way?
Surprised that all the various CUDA calls and functions are translated or whatever.
Obviously I don't understand what WSL is actually doing under the covers.
I thought that you are running native Linux applications. I understood that the common apt package mechanism is used.
I think I'll stick to basic native Ubuntu. I know that very well by now.
Or decent enough to get things done fairly easily. Comfortable with it at least. |
|
|
Jim1348Send message
Joined: 28 Jul 12 Posts: 819 Credit: 1,591,285,971 RAC: 0 Level
Scientific publications
|
It is confusing. You are running BOINC as a Linux app, and even VirtualBox.
But the video drivers are different. I suppose they have the appropriate hooks built in.
https://docs.nvidia.com/cuda/wsl-user-guide/index.html#getting-started-with-cuda-on-wsl
Maybe it will fly on Win11. I might try it later in the year. |
|
|
KAMasudSend message
Joined: 27 Jul 11 Posts: 137 Credit: 523,901,354 RAC: 0 Level
Scientific publications
|
I tried those instructions, and BOINC still does not recognize my GTX 1650 Super with the latest Windows drivers, which I think is what they are asking for. But it is not entirely clear that it is supported.
I run WSL2 under Win10 Pro 21H2 (OS Build 19044.1865), and it is running the Linux 5.10.102.1-microsoft-standard-WSL2 kernel.
BOINC does not recognize VirtualBox either, even though that can be installed. It may be a limitation of BOINC.
I run all my CPDN tasks in VirtualBox. |
|
|
Jim1348Send message
Joined: 28 Jul 12 Posts: 819 Credit: 1,591,285,971 RAC: 0 Level
Scientific publications
|
I run all my CPDN tasks in VirtualBox.
I am referring to VirtualBox for Ubuntu 20.04 running under WSL (Windows 10 in my case). I can run VirtualBox directly under Win10 OK.
|
|
|