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

CMake fails with Nvidia compilers when the GPU architecture option is not supplied #3207

Closed
scottbiersdorff opened this issue Jul 22, 2020 · 3 comments

Comments

@scottbiersdorff
Copy link

With the following cmake command:

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=nvc++ -DKokkos_ENABLE_COMPILER_WARNINGS=ON -DKokkos_ENABLE_TESTS=ON -DKokkos_ENABLE_OPENMPTARGET=ON -DCMAKE_CXX_STANDARD=17 kokkos

I get:

...
CMake Error at cmake/kokkos_arch.cmake:418 (STRING):
STRING sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
cmake/kokkos_tribits.cmake:202 (INCLUDE)
CMakeLists.txt:166 (KOKKOS_SETUP_BUILD_ENVIRONMENT)

I believe the code in kokkos_arch.cmake could be guarded to check whether the GPU architecture is set.

@masterleinad
Copy link
Contributor

Fixed in #3191.

@DavidPoliakoff
Copy link
Contributor

Also, hey Scott, long time no see!

@scottbiersdorff
Copy link
Author

Also, hey Scott, long time no see!

Hi David! I thought I saw you work around this project.

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

4 participants