Advanced search

Message boards : Number crunching : GPUGRID Linux tasks / Linux in Windows (WSL)

Author Message
zooxit
Send message
Joined: 4 Jul 21
Posts: 23
Credit: 5,013,278,142
RAC: 24,707,558
Level
Tyr
Scientific publications
wat
Message 57846 - Posted: 16 Nov 2021 | 16:27:53 UTC

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?

Ian&Steve C.
Avatar
Send message
Joined: 21 Feb 20
Posts: 1031
Credit: 35,614,457,483
RAC: 73,329,705
Level
Trp
Scientific publications
wat
Message 57847 - Posted: 16 Nov 2021 | 16:48:16 UTC - in response to Message 57846.
Last modified: 16 Nov 2021 | 16:56:38 UTC

[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.
____________

micropro
Send message
Joined: 4 Feb 20
Posts: 8
Credit: 674,423
RAC: 0
Level
Gly
Scientific publications
wat
Message 57848 - Posted: 16 Nov 2021 | 17:01:27 UTC - in response to Message 57846.
Last modified: 16 Nov 2021 | 17:02:53 UTC

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.

zooxit
Send message
Joined: 4 Jul 21
Posts: 23
Credit: 5,013,278,142
RAC: 24,707,558
Level
Tyr
Scientific publications
wat
Message 57851 - Posted: 16 Nov 2021 | 22:48:39 UTC

Thanks for the replies.
Ian&Steve C.: I will try it next week (busy times now) and report whether it works.

Jim1348
Send message
Joined: 28 Jul 12
Posts: 819
Credit: 1,591,285,971
RAC: 0
Level
His
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 59049 - Posted: 29 Jul 2022 | 16:21:31 UTC

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.

klepel
Send message
Joined: 23 Dec 09
Posts: 189
Credit: 4,196,461,293
RAC: 1,617,116
Level
Arg
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 59061 - Posted: 5 Aug 2022 | 12:29:57 UTC

Me too! I run Linux CPDN taskes on WSL2 on two Win10 computers, and it works very well!

Jim1348
Send message
Joined: 28 Jul 12
Posts: 819
Credit: 1,591,285,971
RAC: 0
Level
His
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 59062 - Posted: 5 Aug 2022 | 14:29:33 UTC - in response to Message 59061.

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: 1284
Credit: 4,926,706,959
RAC: 6,516,431
Level
Arg
Scientific publications
watwatwatwatwat
Message 59063 - Posted: 5 Aug 2022 | 22:02:27 UTC - in response to Message 59062.

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?

Jim1348
Send message
Joined: 28 Jul 12
Posts: 819
Credit: 1,591,285,971
RAC: 0
Level
His
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 59064 - Posted: 5 Aug 2022 | 22:45:58 UTC - in response to Message 59063.

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: 1284
Credit: 4,926,706,959
RAC: 6,516,431
Level
Arg
Scientific publications
watwatwatwatwat
Message 59065 - Posted: 6 Aug 2022 | 1:52:30 UTC

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.

Jim1348
Send message
Joined: 28 Jul 12
Posts: 819
Credit: 1,591,285,971
RAC: 0
Level
His
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 59066 - Posted: 6 Aug 2022 | 5:40:11 UTC - in response to Message 59065.

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.

KAMasud
Send message
Joined: 27 Jul 11
Posts: 137
Credit: 523,901,354
RAC: 16
Level
Lys
Scientific publications
watwat
Message 59067 - Posted: 6 Aug 2022 | 6:32:22 UTC - in response to Message 59062.

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.

Jim1348
Send message
Joined: 28 Jul 12
Posts: 819
Credit: 1,591,285,971
RAC: 0
Level
His
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 59068 - Posted: 6 Aug 2022 | 12:02:21 UTC - in response to Message 59067.

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.

Post to thread

Message boards : Number crunching : GPUGRID Linux tasks / Linux in Windows (WSL)

//