Author |
Message |
zooxitSend message
Joined: 4 Jul 21 Posts: 23 Credit: 11,794,938,127 RAC: 8,220,022 Level
![Tryptophan - More than 10B credit - Honorary cruncher Trp](img/badges/aa/badge_trp.png) Scientific publications
![No publications yet wat](img/badges/papers/badge_pub_default.png) |
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: 11,794,938,127 RAC: 8,220,022 Level
![Tryptophan - More than 10B credit - Honorary cruncher Trp](img/badges/aa/badge_trp.png) Scientific publications
![No publications yet wat](img/badges/papers/badge_pub_default.png) |
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
![Histidine - More than 1.5B credits His](img/badges/aa/badge_his.png) Scientific publications
![Top 10% (54th/2163) contribution to Bisignano et al. JCIM 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (143rd/1283) contribution to Doerr et al. JCTC 2014 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (49th/2838) contribution to Stanley et al, Nat Commun 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (1362nd/3183) contribution to Lauro et al., JCIM 2014 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (148th/3611) contribution to Ferruz et al., JCIM 2015 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (64th/4128) contribution to Ferruz et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (292nd/4815) contribution to Stanley et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (136th/4730) contribution to Noe et al., Nat Chem 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (220th/1348) contribution to Doerr et al, JCTC 2017 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (66th/4634) contribution to Martinez-Rosell et al, JCIM 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (35th/1656) contribution to Kapoor et al., Sci Rep 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (157th/1885) contribution to Ferruz et al., Sci Rep 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (470th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (53rd/1450) contribution to Herrera-Nieto et al, Sci Rep 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (588th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) |
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,759,881,008 RAC: 618,108 Level
![Arginine - More than 3B credits Arg](img/badges/aa/badge_arg.png) Scientific publications
![Top 50% (1160th/4410) contribution to Buch et al, PNAS 2011 wat](img/badges/papers/badge_pub_gold.png) ![Top 25% (319th/2450) contribution to Giorgino et al, J. Chem. Theory Comput. 2011 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (659th/9662) contribution to Buch et al, J. Chem. Theory Comput. 2011 wat](img/badges/papers/badge_pub_emerald.png) ![Top 100% (3079th/3113) contribution to Giorgino et al, J. Chem. Theory Comput, 2012 wat](img/badges/papers/badge_pub_white.png) ![Top 25% (1334th/5798) contribution to Sadiq et al, PNAS 2012 wat](img/badges/papers/badge_pub_ruby.png) ![Top 25% (491st/1995) contribution to Venken et al, JCTC 2013 wat](img/badges/papers/badge_pub_ruby.png) ![Top 100% (3229th/3349) contribution to Buch et al, JCIM 2013 wat](img/badges/papers/badge_pub_white.png) ![Top 25% (801st/3864) contribution to Dainese et al, Biochem. J. 2013 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (370th/4477) contribution to Pérez-Hernández et al, JCP 2013 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (88th/2163) contribution to Bisignano et al. JCIM 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (29th/1283) contribution to Doerr et al. JCTC 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (59th/2838) contribution to Stanley et al, Nat Commun 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (105th/3183) contribution to Lauro et al., JCIM 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (65th/3611) contribution to Ferruz et al., JCIM 2015 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (48th/4128) contribution to Ferruz et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (59th/4815) contribution to Stanley et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 1% (44th/4730) contribution to Noe et al., Nat Chem 2017 wat](img/badges/papers/badge_pub_sapphire.png) ![Top 10% (66th/1348) contribution to Doerr et al, JCTC 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (61st/4634) contribution to Martinez-Rosell et al, JCIM 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (30th/1656) contribution to Kapoor et al., Sci Rep 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (27th/1885) contribution to Ferruz et al., Sci Rep 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (74th/1022) contribution to Wang et al., ACS Cent. Sci. 2019 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (44th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (57th/1450) contribution to Herrera-Nieto et al, Sci Rep 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 1% (41st/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_sapphire.png) |
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
![Histidine - More than 1.5B credits His](img/badges/aa/badge_his.png) Scientific publications
![Top 10% (54th/2163) contribution to Bisignano et al. JCIM 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (143rd/1283) contribution to Doerr et al. JCTC 2014 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (49th/2838) contribution to Stanley et al, Nat Commun 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (1362nd/3183) contribution to Lauro et al., JCIM 2014 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (148th/3611) contribution to Ferruz et al., JCIM 2015 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (64th/4128) contribution to Ferruz et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (292nd/4815) contribution to Stanley et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (136th/4730) contribution to Noe et al., Nat Chem 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (220th/1348) contribution to Doerr et al, JCTC 2017 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (66th/4634) contribution to Martinez-Rosell et al, JCIM 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (35th/1656) contribution to Kapoor et al., Sci Rep 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (157th/1885) contribution to Ferruz et al., Sci Rep 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (470th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (53rd/1450) contribution to Herrera-Nieto et al, Sci Rep 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (588th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) |
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: 1376 Credit: 8,068,045,234 RAC: 6,525,209 Level
![Tyrosine - More than 5B credits Tyr](img/badges/aa/badge_tyr.png) Scientific publications
![Top 10% (64th/1022) contribution to Wang et al., ACS Cent. Sci. 2019 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (273rd/672) contribution to Martinez-Rosell et al, JCIM 2020 wat](img/badges/papers/badge_pub_gold.png) ![Top 75% (1040th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_silver.png) ![Top 10% (413th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 100% (294th/315) contribution to Cossu et al, JCIM 2020 wat](img/badges/papers/badge_pub_white.png) |
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
![Histidine - More than 1.5B credits His](img/badges/aa/badge_his.png) Scientific publications
![Top 10% (54th/2163) contribution to Bisignano et al. JCIM 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (143rd/1283) contribution to Doerr et al. JCTC 2014 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (49th/2838) contribution to Stanley et al, Nat Commun 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (1362nd/3183) contribution to Lauro et al., JCIM 2014 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (148th/3611) contribution to Ferruz et al., JCIM 2015 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (64th/4128) contribution to Ferruz et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (292nd/4815) contribution to Stanley et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (136th/4730) contribution to Noe et al., Nat Chem 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (220th/1348) contribution to Doerr et al, JCTC 2017 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (66th/4634) contribution to Martinez-Rosell et al, JCIM 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (35th/1656) contribution to Kapoor et al., Sci Rep 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (157th/1885) contribution to Ferruz et al., Sci Rep 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (470th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (53rd/1450) contribution to Herrera-Nieto et al, Sci Rep 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (588th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) |
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: 1376 Credit: 8,068,045,234 RAC: 6,525,209 Level
![Tyrosine - More than 5B credits Tyr](img/badges/aa/badge_tyr.png) Scientific publications
![Top 10% (64th/1022) contribution to Wang et al., ACS Cent. Sci. 2019 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (273rd/672) contribution to Martinez-Rosell et al, JCIM 2020 wat](img/badges/papers/badge_pub_gold.png) ![Top 75% (1040th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_silver.png) ![Top 10% (413th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 100% (294th/315) contribution to Cossu et al, JCIM 2020 wat](img/badges/papers/badge_pub_white.png) |
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
![Histidine - More than 1.5B credits His](img/badges/aa/badge_his.png) Scientific publications
![Top 10% (54th/2163) contribution to Bisignano et al. JCIM 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (143rd/1283) contribution to Doerr et al. JCTC 2014 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (49th/2838) contribution to Stanley et al, Nat Commun 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (1362nd/3183) contribution to Lauro et al., JCIM 2014 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (148th/3611) contribution to Ferruz et al., JCIM 2015 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (64th/4128) contribution to Ferruz et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (292nd/4815) contribution to Stanley et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (136th/4730) contribution to Noe et al., Nat Chem 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (220th/1348) contribution to Doerr et al, JCTC 2017 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (66th/4634) contribution to Martinez-Rosell et al, JCIM 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (35th/1656) contribution to Kapoor et al., Sci Rep 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (157th/1885) contribution to Ferruz et al., Sci Rep 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (470th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (53rd/1450) contribution to Herrera-Nieto et al, Sci Rep 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (588th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) |
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: 138 Credit: 539,953,398 RAC: 498,343 Level
![Lysine - More than 500M credits Lys](img/badges/aa/badge_lys.png) Scientific publications
![Top 50% (362nd/1022) contribution to Wang et al., ACS Cent. Sci. 2019 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (277th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) |
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
![Histidine - More than 1.5B credits His](img/badges/aa/badge_his.png) Scientific publications
![Top 10% (54th/2163) contribution to Bisignano et al. JCIM 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (143rd/1283) contribution to Doerr et al. JCTC 2014 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (49th/2838) contribution to Stanley et al, Nat Commun 2014 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (1362nd/3183) contribution to Lauro et al., JCIM 2014 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (148th/3611) contribution to Ferruz et al., JCIM 2015 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (64th/4128) contribution to Ferruz et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (292nd/4815) contribution to Stanley et al., Sci Rep 2016 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (136th/4730) contribution to Noe et al., Nat Chem 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 25% (220th/1348) contribution to Doerr et al, JCTC 2017 wat](img/badges/papers/badge_pub_ruby.png) ![Top 10% (66th/4634) contribution to Martinez-Rosell et al, JCIM 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (35th/1656) contribution to Kapoor et al., Sci Rep 2017 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (157th/1885) contribution to Ferruz et al., Sci Rep 2018 wat](img/badges/papers/badge_pub_emerald.png) ![Top 50% (470th/1541) contribution to Rodriguez-Espigares et al., Nat Meth 2020 wat](img/badges/papers/badge_pub_gold.png) ![Top 10% (53rd/1450) contribution to Herrera-Nieto et al, Sci Rep 2020 wat](img/badges/papers/badge_pub_emerald.png) ![Top 10% (588th/6232) contribution to Herrera-Nieto et al, JCIM 2020 wat](img/badges/papers/badge_pub_emerald.png) |
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.
|
|
|