Skip to content

Fix NVHPC compilation for master-omp#88

Merged
reuterbal merged 2 commits intomaster-ompfrom
nabr-master-omp-nvhpc-compile
Oct 28, 2025
Merged

Fix NVHPC compilation for master-omp#88
reuterbal merged 2 commits intomaster-ompfrom
nabr-master-omp-nvhpc-compile

Conversation

@reuterbal
Copy link
Copy Markdown
Collaborator

ifsrrtm was not using OpenMP because there is no CPU-side OpenMP code in there. For GPU execution we have offload directives and therefore need to make sure we link against that target.

That unearthed the fact that NVHPC seems to not support the PRESENT modifier in MAP:

!$OMP TARGET DATA MAP(PRESENT ...)

@reuterbal
Copy link
Copy Markdown
Collaborator Author

@PaulMullowney does this look sane to you?

@PaulMullowney
Copy link
Copy Markdown

@PaulMullowney does this look sane to you?

Yes, it looks good. I've actually run in to this before with NVCOMPILER though I don't recall if it was a compile time or run time issue.

@reuterbal reuterbal merged commit 3e6ba09 into master-omp Oct 28, 2025
39 of 53 checks passed
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.

2 participants