Hi,
A cleaner solution to solve the issue that worked for me:
-
set the
NVRTC_DLLenvironment variable to your own nvrtc DLL path
(in my caseset NVRTC_DLL=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvrtc64_120_0.dll); -
add the cuda binary path to the DLL directories
os.add_dll_directory(os.environ.get('CUDA_PATH') + "/bin")beforeimport optix.
Then, pyoptix examples are able to run on Windows.
I didn’t found a way to change the optix package so that it can take into account the cuda binary directory internally…
Btw, thank you for creating pyoptix, this is a really usefull tool that helps me a lot.
Hope this helps.