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

Fix: Pre-Installed AMReX w/ CUDA #4668

Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Feb 4, 2024

Fix CMake language activation with pre-installed AMReX using the CUDA backend.

CMake configure error was:

...
-- pyAMReX: Found version '24.02'
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

CMake Error at CMakeLists.txt:461 (target_compile_features):
  target_compile_features no known features for CUDA compiler
  ""
  version .
...

Related to AMReX-Codes/pyamrex#252

Fix CMake language activation with pre-installed AMReX
using the CUDA backend.
@ax3l ax3l added bug Something isn't working backend: cuda Specific to CUDA execution (GPUs) install bug: affects latest release Bug also exists in latest release version labels Feb 4, 2024
Copy link
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR!

@lucafedeli88 lucafedeli88 merged commit a9d8126 into BLAST-WarpX:development Feb 5, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: cuda Specific to CUDA execution (GPUs) bug: affects latest release Bug also exists in latest release version bug Something isn't working install
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants