Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with building PyOptiX binding on Windows #7

Open
wch0x01 opened this issue Oct 29, 2022 · 0 comments
Open

Issue with building PyOptiX binding on Windows #7

wch0x01 opened this issue Oct 29, 2022 · 0 comments

Comments

@wch0x01
Copy link

wch0x01 commented Oct 29, 2022

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

Otherwise 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant