Error when trying to install without CUDA
I'm trying to create a singularity container with ccmpred in it but the ccmpred installation fails.
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- The CUDA compiler identification is unknown
CMake Error at CMakeLists.txt:115 (enable_language):
No CMAKE_CUDA_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CUDACXX" or 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.
-- Configuring incomplete, errors occurred!
Since you state in your readme, that CUDA is optional, I would expect that the installation would recognize if someone is trying to install ccmpred without CUDA instead of throwing an error...
I would be happy if someone could help me out with a quick fix 🙂. But I also think this should be addressed on a higher level.
Best wishes,
Anna Smolinski
As a workaround, you could try to tell cmake explicitly that you do not want to compile the CUDA version:
cmake -DWITH_CUDA=OFF ${PATH_TO_CCMPRED_REPO}
instead of just calling cmake.
Thank you! Now I could actually build the container 🙂