Skip to content

build fixes for fregrid-gpu#413

Open
rem1776 wants to merge 2 commits into
NOAA-GFDL:mainfrom
rem1776:gpu-include-fix
Open

build fixes for fregrid-gpu#413
rem1776 wants to merge 2 commits into
NOAA-GFDL:mainfrom
rem1776:gpu-include-fix

Conversation

@rem1776

@rem1776 rem1776 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description
Fixes to get the gpu build working. NVHPC just needed some include paths added. The rest of the changes are for GCC, rewrote the configure check and made some small code changes.

Fixes #412

How Has This Been Tested?
nvhpc 25.3 on the amd box and gcc 14.3 on my workstation.

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 review from mlee03 and underwoo July 23, 2026 16:35
}
}
#pragma acc data update device(the_rotation_matrix_gpu[:3][:3])
#pragma acc update device(the_rotation_matrix_gpu[:3][:3])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh interesting. looking at the openacc api's, your change is the correct way to use update. Wonder why it didn't error out before.

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.

build issues with GPU and spack

2 participants