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

Error happens at Install Segmentator #10

Closed
xiaotiancai899 opened this issue May 19, 2023 · 1 comment
Closed

Error happens at Install Segmentator #10

xiaotiancai899 opened this issue May 19, 2023 · 1 comment

Comments

@xiaotiancai899
Copy link

When I run the command
'cmake ..
-DCMAKE_PREFIX_PATH=python -c 'import torch;print(torch.utils.cmake_prefix_path)'
-DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
-DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
-DCMAKE_INSTALL_PREFIX=python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())' '

The error happens:
-- The CUDA compiler identification is unknown
-- Check for working CUDA compiler: /usr/bin/nvcc
CMake Error in /mnt/d/student/Documents/software/wsl/isbnet/ISBNet-master/ISBNet-master/segmentator/csrc/build/CMakeFiles/CMake
Tmp/CMakeLists.txt:
CUDA_ARCHITECTURES is empty for target "cmTC_017f8".

CMake Error in /mnt/d/student/Documents/software/wsl/isbnet/ISBNet-master/ISBNet-master/segmentator/csrc/build/CMakeFiles/CMake
Tmp/CMakeLists.txt:
CUDA_ARCHITECTURES is empty for target "cmTC_017f8".
-- Configuring incomplete, errors occurred!

How do I solve this problem? Thanks in advance!

@ngoductuanlhp
Copy link
Collaborator

I think the problem is that CMake cannot find the path to the Cuda compiler. You could check the current cuda version on your computer by typing nvcc --version and then following this instruction NVlabs/instant-ngp#25.

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

2 participants