You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe we’re not yet packaging OptiX into the WSL2 driver. I believe this is hung up on a redesign of the driver packaging and delivery process, which is why it’s taking such a long time.
61
+
62
+
I have heard rumors that people have been able to get OptiX to work in WSL2 via manual install. This is unofficial and subject to change, so your mileage may vary, but here are some steps that may work for you:
63
+
64
+
Running OptiX Applications on WSL 2
65
+
Install WSL 2 and enable CUDA
66
+
Follow the canonical methods for installing WSL, display driver, and CUDA Toolkit within WSL
67
+
68
+
As mentioned in the docs, do not install a Linux Display driver in WSL, this will break the mapping of libcuda.
69
+
There are CUDA Toolkit downloads specifically for WSL that will not attempt to install a driver, only the toolkit.
70
+
You can also deselect the driver in a normal version of the toolkit.
71
+
Obtain OptiX / RTCore libraries for Linux
72
+
Download and extract libraries from the linux display driver.
73
+
You can run the driver installer in WSL using ./[driver filename].run -x which will unpack the driver but not install it.
74
+
Copy libnvoptix.so.XXX.00, libnvidia-rtcore.so.XXX.00, and libnvidia-ptxjitcompiler.so.XXX.00 into C:/Windows/System32/lxss/lib where XXX is the driver version.
75
+
Rename libnvoptix.so.XX.00 to libnvoptix.so.1
76
+
Rename libnvidia-ptxjitcompiler.so.XXX.00 to libnvidia-ptxjitcompiler.so.1
77
+
Do not rename libnvidia-rtcore.so.XXX.00
78
+
Be aware that future drivers may need additional libraries that will need to be copied.
79
+
Building an OptiX Application
80
+
You may need to add /usr/local/cuda/bin to your PATH to access NVCC, but do NOT add /usr/local/cuda/lib64 to LD_LIBRARY_PATH as you normally would when installing the CUDA toolkit. libcuda and other libraries are passed through from C:/Windows/System32/lxss/lib where you placed the OptiX and RTCore libs.
81
+
Instead, add /usr/lib/wsl/lib to your LD_LIBRARY_PATH to pick up CUDA, OptiX, etc.
82
+
Running an OptiX Application
83
+
With LD_LIBRARY_PATH set per the previous step, you should be able to run an OptiX executable.
84
+
You may need to rebuild the WSL cache. You can do so by quitting any WSL sessions and running wsl --shutdown from Powershell, then starting a new WSL session. Failing to reset the cache may lead to strange load paths.
85
+
You may verify paths are correct using strace, e.g., strace -o trace ./bin/optixHello
86
+
–
87
+
David.
88
+
89
+
---------------------
90
+
91
+
I ended up downloading: https://uk.download.nvidia.com/XFree86/Linux-x86_64/590.44.01/NVIDIA-Linux-x86_64-590.44.01.run
92
+
Nvidia Driver: 591.44
93
+
94
+
I then extract files and followed instructions above
0 commit comments