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: New AMReX Options #1492

Merged
merged 2 commits into from
Nov 5, 2020
Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Nov 2, 2020

Anticipate new AMReX options in CMake.

Also introduces a new environment hint, AMReX_CUDA_ARCH, that we can use in warpx.profile files to default-optimize for CUDA architectures. Currently, as well as without the hint, CMake will try to find out local GPUs by running a small executable that queries the device capabilities. If the login node has no GPUs or the run does not succeed we fall back to potentially unoptimized default architectures (6.0+).

Ref.: AMReX-Codes/amrex#1490

@ax3l ax3l added install component: third party Changes in WarpX that reflect a change in a third-party library labels Nov 2, 2020
@ax3l ax3l mentioned this pull request Nov 2, 2020
11 tasks
@ax3l ax3l force-pushed the topic-cmakeAMReXupdate branch 5 times, most recently from 5ca3a5f to 8004e30 Compare November 4, 2020 01:08
@ax3l ax3l force-pushed the topic-cmakeAMReXupdate branch from 8004e30 to 29e793a Compare November 5, 2020 05:16
ax3l added 2 commits November 4, 2020 21:18
Anticipate new AMReX options in CMake.
New environment hint with the same name as the CMake variable.
@ax3l ax3l force-pushed the topic-cmakeAMReXupdate branch from 29e793a to 5c1d58e Compare November 5, 2020 05:18
@ax3l ax3l changed the title [WIP] CMake: New AMReX Options CMake: New AMReX Options Nov 5, 2020
@ax3l
Copy link
Member Author

ax3l commented Nov 5, 2020

Ok, AMReX-Codes/amrex#1490 was merged so we need to merge this now to reflect the changes in our code base :)

@ax3l ax3l merged commit eda7dfc into ECP-WarpX:development Nov 5, 2020
@ax3l ax3l deleted the topic-cmakeAMReXupdate branch November 5, 2020 05:58
@ax3l ax3l mentioned this pull request Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: third party Changes in WarpX that reflect a change in a third-party library install
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant