PS C:\Users\Neo> wsl --list --verbose
NAME STATE VERSION
Ubuntu-18.04 Running 2
PS C:\Users\Neo> wsl cat /proc/version
Linux version 4.19.128-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Jun 23 12:58:10 UTC 2020
Third, I Install cuda on linux subsystem, but get error when I run the BlackScholes
In that case you need to uninstall the CUDA driver inside WSL2. This can be tricky so I recommend to uninstall your distro and install again.
In a brand new distro install you only need the Windows driver installed. You will know the GPU is detected if the file /dev/dxg exists.
I am experiencing the same issue. I tried starting from scratch in WSL 2. Reinstalled Ubuntu and nvidia cuda drivers. I have windows insider (20H2 build 19042.685) + Latest nvidia drivers 465.21.
I have no idea where you are getting 20145 from. I selected Beta Channel for the windows insider.
This worked and should be addressed in the docs. Currently being in the beta ring puts you at a build higher than in the build shown in the install docs. The docs show that they are using 4.19.121 but currently the beta ring will put you at 4.19.128. Even at the newer build, it will not work. Switching to the dev ring does work.
Indeed all the docs should be self contained. I happened to stumble across these sources before switching to the insiders program, which tell you to join the Dev channel.
Even the windows docs make it unclear. Yes they do say dev channel but a couple of lines down they say:
“For this preview, you need a kernel version of 4.19.121 or higher. You can check the version number by running the following command in PowerShell”
Which at this point can be achieved by using the beta ring. I used the beta ring and had 4.19.128 and spent a day trying to figure out what the deal was until out of frustration I tried the dev channel. They should just take that out and say you need to be on dev. I guess this is what happens when you want to use preview tech.