CCMpred icon indicating copy to clipboard operation
CCMpred copied to clipboard

Error when trying to install without CUDA

Open AnnaSm0 opened this issue 5 years ago • 2 comments

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

AnnaSm0 avatar Feb 05 '20 15:02 AnnaSm0

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.

grubermar avatar Feb 05 '20 15:02 grubermar

Thank you! Now I could actually build the container 🙂

AnnaSm0 avatar Feb 05 '20 16:02 AnnaSm0