-
Notifications
You must be signed in to change notification settings - Fork 212
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
Gpu improvements #4334
Gpu improvements #4334
Conversation
if gpu_type != "none": | ||
expect( | ||
gpu_offload != "none", | ||
"Both GPU_TYPE and GPU_OFFLOAD must be defined if either is", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting a discussion from E3SM perspective:
As this mandates GPU_OFFLOAD, we probably have to add a third option to handle the case for C++ codebases that use a library approach as it won't be OpenMP or OpenACC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sarats - there is an ongoing discussion in #4334, I will copy this comment there.
compiler, ngpus_per_node | ||
), | ||
) | ||
if gpu_type: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on removing this init stub for ngpus as it makes the definition explicit.
superceeded |
Create new variables GPU_TYPE and GPU_OFFLOAD in cime so that special -gpu compiler definitions are no longer needed.
Test suite:
Test baseline:
Test namelist changes:
Test status: [bit for bit, roundoff, climate changing]
Fixes [CIME Github issue #]
User interface changes?:
Update gh-pages html (Y/N)?: