jiazhihao / TASO

The Tensor Algebra SuperOptimizer for Deep Learning
Apache License 2.0
682 stars 89 forks source link

Could not find cmake module file: CMakeDetermineCUDACompiler.cmake #88

Open feiyun1265 opened 2 years ago

feiyun1265 commented 2 years ago

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!