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

Cannot override amdgpu-function-calls in downstream codes #3819

Open
psharda opened this issue Mar 18, 2024 · 2 comments
Open

Cannot override amdgpu-function-calls in downstream codes #3819

psharda opened this issue Mar 18, 2024 · 2 comments

Comments

@psharda
Copy link

psharda commented Mar 18, 2024

When amrex is compiled as a submodule in quokka, and quokka is compiled for AMD GPUs, this line sets amdgpu-function-calls=false which does not seem to be overridden even if we set it to true in quokka CMakeLists:

https://github.com/psharda/amrex/blob/a5720c951e81e78097b9b00aeb1aac2c3b4366a6/Tools/CMake/AMReXParallelBackends.cmake#L271

How can a downstream code like quokka change the value of amdgpu-function-calls without having to go into amrex CMake files and manually setting it to true? This is needed to compile problems in quokka that use chemistry (microphysics).

This is related to quokka-astro/quokka#569

@ax3l
Copy link
Member

ax3l commented Mar 21, 2024

Ideas:

  • We could make this flag PRIVATE instead of PUBLIC to keep it contained inside AMReX.
  • We can add an option to enable/disable this work-around. Is it even still needed?

@BenWibking
Copy link
Contributor

Ideas:

  • We could make this flag PRIVATE instead of PUBLIC to keep it contained inside AMReX.
  • We can add an option to enable/disable this work-around. Is it even still needed?

I think making it PRIVATE would solve our issue.

When compiling our reaction network, we still need this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants