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

dmUpdate: fix nvhpc compile error #1473

Merged
merged 7 commits into from
Mar 19, 2024
Merged

Conversation

rem1776
Copy link
Contributor

@rem1776 rem1776 commented Mar 4, 2024

Description
Fixes a nvidia compilation error coming from the diag_manager updates. I missed this one in PR #1463 because i was only using autotools. Interestingly this error seems to only happen with mkmf, even if i use the same target flags for autotools.

Just adds a nested select type for when assigning a class(*) field to a character variable.

How Has This Been Tested?
mkmf on gaea with nvhpc/22.3, autotools build on amd with nvhpc/23.11

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

@rem1776 rem1776 requested a review from thomas-robinson as a code owner March 4, 2024 22:05
@rem1776 rem1776 marked this pull request as draft March 5, 2024 17:57
Comment on lines 1599 to 1601
! nvhpc compiler workaround
! saves passed in xmap as an allocatable
! this lets us use a normal assignment instead of a pointer assignment in the loop to avoid a compiler error
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to report this to nvidia?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make sure we have tested using the very latest nvhpc 24.3 before filing a bug with NVidia.

Copy link
Contributor Author

@rem1776 rem1776 Mar 19, 2024

Choose a reason for hiding this comment

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

The xgrid compilation error was pretty hard to reproduce, Niki first saw this using 22.3 and I've only been able to get the error using his xml to compile. I don't seem to get the error when i compile with autotools, and didn't even get it when i tried compiling one of my xml's with nvidia.

Copy link
Member

Choose a reason for hiding this comment

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

We can get the makefile and everything else needed and send it to them

@rem1776 rem1776 marked this pull request as ready for review March 19, 2024 15:48
@rem1776 rem1776 requested a review from Scitech777 as a code owner March 19, 2024 15:48
@Scitech777 Scitech777 merged commit 2ace945 into NOAA-GFDL:dmUpdate Mar 19, 2024
17 of 19 checks passed
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
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.

4 participants