-
Notifications
You must be signed in to change notification settings - Fork 11
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
CarpetX: avoid features not supported by nvhpc's compiler #331
base: main
Are you sure you want to change the base?
Conversation
I confirm the this change make CarpetX compile on vista with nvc compilers |
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.
I added comments requesting changes.
Alright, I updated the C++ stuff with |
@lwJi please click on "approve" if you are happy with the proposed change. |
I can't find a "approve" button on my side |
This avoids two features not supported by nvhpc version nvc++ 24.3 ("nvc++ 24.3-0 linuxarm64 target on aarch64 Linux -tp neoverse-v2"):
The former is the more annoying fix since I added an
#ifdef
. If one consider the possible loss in speed due to using a#pragma omp critical
instead of (possibly) are more optimal implementation via#pragma reduction(...)
negligible then one can remove the#ifdef
.