Issue with building PyOptiX binding on Windows
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 143
- Forks
- 28
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 4
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open PyOptiX/optix/CMakeLists.txt around lines 42-45 and inspect the target_link_libraries entry associated with the Python module. Build the PyOptiX binding in the documented conda environment on Windows, and confirm the unresolved cudaFree linker error is gone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100