Open mawright opened 1 year ago
I just posted this but I think I solved it. The issue seems to be the hardcoded path usr/local/cuda
in https://github.com/FindDefinition/cumm/blob/92a3dfa7e3ad4f0d185fbe14a38c79adfb63d313/cumm/common.py#L249-L251, which made the compiler look there instead of the Cuda that was part of the conda environment. Changing that path to the conda environment directories solved this error. However, I'm now encountering a similar error when trying to compile spconv
but haven't found a similar hardcoded directory in the code there yet.
I'm experiencing the same issue. Trying to build on Jetson Orin AGX with JetPack 6.0DP, CUMM_CUDA_VERSION = 12.0 has anyone been able to resolve this issue consistently? Changing the path sadly doesn't work
What worked for me in the end was to build the CPU only version by unsetting the CUMM_CUDA_VERSION variable
1.install cuda env
conda install "cuda<12.2" -c nvidia
do not install, check the cuda-* version is or not suitable
if cuda-* large than 12.1
conda install "cuda-*<12.2"
2.copy the headers necessary to the include
cp /root/miniconda3/envs/spconv_cu121/targets/x86_64-linux/include/* /root/miniconda3/envs/spconv_cu121/include/
3.modify the _CACHED_CUDA_INCLUDE_LIB in https://github.com/FindDefinition/cumm/blob/main/cumm/common.py#L231
_CACHED_CUDA_INCLUDE_LIB = ("/root/miniconda3/envs/spconv_cu121/include", "/root/miniconda3/envs/spconv_cu121/lib")
pip install -e .
python -c "import cumm"
I'm on Ubuntu 22.04 in WSL and trying to install cumm in a conda environment. Building the wheels fails with the attached error log.
log.txt
The text of the error log is too long to paste into the issue window. Here's a snippet from the full log of what I believe is the main error and the stacktrace