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

Could not find compiler set in environment variable CUDACXX #25

Open
Arthur-Ling opened this issue Dec 13, 2023 · 2 comments
Open

Could not find compiler set in environment variable CUDACXX #25

Arthur-Ling opened this issue Dec 13, 2023 · 2 comments

Comments

@Arthur-Ling
Copy link

When I run "bash build_cutlass.sh", an error happens:

-- CMake Version: 3.18.2
-- The CXX compiler identification is GNU 8.4.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCUDACompiler.cmake:25 (message):
Could not find compiler set in environment variable CUDACXX:

/usr/local/cuda/bin/nvcc.

Call Stack (most recent call first):
CUDA.cmake:46 (enable_language)
CMakeLists.txt:42 (include)

CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/lizhangming/Project/torch-int-main/submodules/cutlass/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.

what should I do before "bash build_cutlass.sh"?

@DonliFly
Copy link

DonliFly commented Mar 15, 2024

  1. you should check the path /usr/local/cuda/bin/nvcc, maybe the path not exist;
  2. then find the nvcc path, My path is /root/miniconda3/bin/nvcc
  3. modified the build_cutlass.sh file, like this
    #export CUDACXX=/usr/local/cuda/bin/nvcc
    export CUDACXX=/root/miniconda3/bin/nvcc

then it will work

@awer-A
Copy link

awer-A commented Mar 15, 2024

@DonliFly Hi,How can I find the path to nvcc?

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

3 participants