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

Remove ENABLE_OFFLOAD_CLANG_DEBUG_O3 option in CMake and raise Clang minimal version to 16 when using offload #5129

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

ye-luo
Copy link
Contributor

@ye-luo ye-luo commented Aug 14, 2024

Proposed changes

I got nvlink failure when using llvm 15 but 16 was OK. So raise the minimal version to 16 when using offload.
Closes #5127. Debug build works fine with clang 16 without -O3.

What type(s) of changes does this code introduce?

  • Build related changes

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

epyc-server

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'

@ye-luo
Copy link
Contributor Author

ye-luo commented Aug 14, 2024

@prckent I have no issue with a debug build using rocm 6.2

cmake -DCMAKE_C_COMPILER=amdclang -DCMAKE_CXX_COMPILER=amdclang++ -DQMC_MPI=OFF -DENABLE_OFFLOAD=ON -DENABLE_CUDA=ON -DQMC_CUDA2HIP=ON -DCMAKE_BUILD_TYPE=Debug ..

@ye-luo
Copy link
Contributor Author

ye-luo commented Aug 14, 2024

Test this please

@prckent
Copy link
Contributor

prckent commented Aug 15, 2024

(Would like to run this on our MI210s and confirm all is OK locally later today. Currently doing some dependent software rebuilds. Will merge if these take too long or have issues. )

Copy link
Contributor

@prckent prckent left a comment

Choose a reason for hiding this comment

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

LGTM

Debug builds OK here as well.

@prckent
Copy link
Contributor

prckent commented Aug 15, 2024

Test this please

@prckent prckent enabled auto-merge August 15, 2024 21:55
@prckent prckent merged commit 1ef7bb9 into QMCPACK:develop Aug 15, 2024
40 of 41 checks passed
@ye-luo ye-luo deleted the remove-option branch August 22, 2024 23:54
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

Successfully merging this pull request may close these issues.

amdclang requires ENABLE_OFFLOAD_CLANG_DEBUG_O3=OFF
2 participants