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

Error when trying to install without CUDA #26

Open
AnnaSm0 opened this issue Feb 5, 2020 · 2 comments
Open

Error when trying to install without CUDA #26

AnnaSm0 opened this issue Feb 5, 2020 · 2 comments

Comments

@AnnaSm0
Copy link

AnnaSm0 commented Feb 5, 2020

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

@grubermar
Copy link
Contributor

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.

@AnnaSm0
Copy link
Author

AnnaSm0 commented Feb 5, 2020

Thank you! Now I could actually build the container 🙂

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

2 participants