cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

NVVM bindings not working on Windows + CUDA conda packages

Open leofang opened this issue 11 months ago • 2 comments

As discussed offline, the search logic here https://github.com/NVIDIA/cuda-python/blob/19563d59dd3f349e365fb57f3d95f1e7af649ad9/cuda_bindings/cuda/bindings/_internal/nvjitlink_windows.pyx#L57-L87 does not look for conda installations , which has the following path:

%CONDA_PREFIX%\Library\nvvm\lib\x64\nvvm.lib

One way to fix it is to patch to the internal template and regenerate the above file.

leofang avatar Feb 18 '25 18:02 leofang

(FWIW this is the reason why we want to have a general solution #451 🙂)

leofang avatar Feb 18 '25 18:02 leofang

To make the situation worse, CUDA 11 and CUDA 12 conda packages have different layouts: https://github.com/conda-forge/cudatoolkit-feedstock/blob/0f01f6edfe22e77ac068daa46505711a1481272e/recipe/meta.yaml#L681-L683 (see docs in https://github.com/conda-forge/cuda-feedstock/tree/main/recipe for more info on the "new" layout)

leofang avatar Feb 18 '25 18:02 leofang