TIGRE icon indicating copy to clipboard operation
TIGRE copied to clipboard

CUDA 12.4 Can not find CUDA path after successful compling

Open GreameLee opened this issue 6 months ago • 3 comments

I can run it before, but when I update the cuda to 12.4 it can not find the cuda path even nvcc -V can work:

KeyError                                  Traceback (most recent call last)
Cell In[1], [line 1](vscode-notebook-cell:?execution_count=1&line=1)
----> [1](vscode-notebook-cell:?execution_count=1&line=1) import tigre
      [2](vscode-notebook-cell:?execution_count=1&line=2) import numpy as np
      [3](vscode-notebook-cell:?execution_count=1&line=3) from tigre.utilities import sample_loader

File c:\Users\Haodong_Li\AppData\Local\anaconda3\envs\sde\lib\site-packages\tigre\__init__.py:18
     [15](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/site-packages/tigre/__init__.py:15)     os.add_dll_directory(dll_directory)
     [17](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/site-packages/tigre/__init__.py:17)     # The user must install the CUDA Toolkit
---> [18](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/site-packages/tigre/__init__.py:18)     cuda_bin = os.path.join(os.environ["CUDA_PATH"], "bin")
     [19](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/site-packages/tigre/__init__.py:19)     os.add_dll_directory(cuda_bin)
     [21](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/site-packages/tigre/__init__.py:21) from .utilities.geometry import geometry

File c:\Users\Haodong_Li\AppData\Local\anaconda3\envs\sde\lib\os.py:675, in _Environ.__getitem__(self, key)
    [672](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/os.py:672)     value = self._data[self.encodekey(key)]
    [673](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/os.py:673) except KeyError:
    [674](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/os.py:674)     # raise KeyError with the original key value
--> [675](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/os.py:675)     raise KeyError(key) from None
    [676](file:///C:/Users/Haodong_Li/AppData/Local/anaconda3/envs/sde/lib/os.py:676) return self.decodevalue(value)

KeyError: 'CUDA_PATH'
  • python version:3.8
  • OS:windows
  • CUDA version:12.4

GreameLee avatar Aug 29 '24 15:08 GreameLee