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 cmake module file: CMakeDetermineCUDACompiler.cmake #88

Open
feiyun1265 opened this issue Dec 6, 2021 · 0 comments
Open

Comments

@feiyun1265
Copy link

feiyun1265 commented Dec 6, 2021

command:mkdir build; cd build; cmake ..
error message:
-- The CXX compiler identification is GNU 5.4.0
CMake Error: Could not find cmake module file: CMakeDetermineCUDACompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CUDA_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CUDA_COMPILER
CMake Error: Could not find cmake module file: /data1/TASO-master/build/CMakeFiles/3.5.1/CMakeCUDACompiler.cmake
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CUDA_COMPILER could be found.

Tell CMake where to find the compiler by setting the CMake cache entry
CMAKE_CUDA_COMPILER to the full path to the compiler, or to the compiler
name if it is in the PATH.

CMake Error: Could not find cmake module file: CMakeCUDAInformation.cmake
CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/data1/TASO-master/build/CMakeFiles/CMakeOutput.log".
marcochen@ubuntu:/data1/TASO-master/build$ cmake
Usage

cmake [options]
cmake [options]

Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

user@ubuntu:/data1/TASO-master/build$ cmake -v
CMake Error: The source directory "/data1/TASO-master/build/-v" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
user@ubuntu:/data1/TASO-master/build$ cmake -version
cmake version 3.5.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

In addition,i have set CUDA path in file config.cmake
Hope to help solve the above problems, thank you!

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

1 participant