Open wch0x01 opened 1 year ago
In order to build the optix Python module correctly on Windows, please modify target_link_libraries Change CUDA::cuda_driver to CUDA::cudart https://github.com/NVIDIA/optix-toolkit/blob/master/PyOptiX/optix/CMakeLists.txt#L42-L45
target_link_libraries
CUDA::cuda_driver
CUDA::cudart
Otherwise this error occurs: main.obj : error LNK2001: unresolved external symbol cudaFree
main.obj : error LNK2001: unresolved external symbol cudaFree
I used a conda environment to set things up before building. https://github.com/NVIDIA/optix-toolkit/tree/master/PyOptiX#conda-environment
My environment: OptiX SDK 7.5.0 CUDA Toolkit 11.8 CMake 3.24.2 Windows 10 Enterprise 21H2 64 bit Visual Studio 2019
In order to build the optix Python module correctly on Windows, please modify
target_link_libraries
ChangeCUDA::cuda_driver
toCUDA::cudart
https://github.com/NVIDIA/optix-toolkit/blob/master/PyOptiX/optix/CMakeLists.txt#L42-L45Otherwise this error occurs:
main.obj : error LNK2001: unresolved external symbol cudaFree
I used a conda environment to set things up before building. https://github.com/NVIDIA/optix-toolkit/tree/master/PyOptiX#conda-environment
My environment: OptiX SDK 7.5.0 CUDA Toolkit 11.8 CMake 3.24.2 Windows 10 Enterprise 21H2 64 bit Visual Studio 2019