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

Make gfs-utils compile on CSPs with Rocky 8 #81

Merged
merged 10 commits into from
Oct 18, 2024

Conversation

weihuang-jedi
Copy link
Contributor

Support Rocky 8 on CSPs.

Description

Make gfs-utils compile on CSPs using Rocky 8.

Resolves #80

Type of change

  • New feature (adds functionality)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? YES

How has this been tested?

  • Clone and build on AWS

Checklist

  • Any dependent changes have been merged and published
  • 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
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • I have made corresponding changes to the documentation if necessary

Comment on lines 7 to 16
prepend_path("PATH", "/contrib/EPIC/bin")
load("gnu")
load("stack-intel")
load("stack-intel-oneapi-mpi")

stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))

stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
unload("gnu")
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what is going on here.
loading gnu, intel and impi, then loading a specific version of the intel and impi, and finally unloading gnu?

also, why is PATH being updated here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I feel that it is strange to load unload "gnu", but it seems that without load "gnu", we won't be able to load stack-intel properly.

The PATH update is not needed, check with SI team, and then tested to remove it.

Copy link
Contributor

Choose a reason for hiding this comment

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

what is the error without loading GNU?

@weihuang-jedi
Copy link
Contributor Author

could some one review this PR please?

modulefiles/gfsutils_noaacloud.intel.lua Outdated Show resolved Hide resolved
modulefiles/gfsutils_noaacloud.intel.lua Outdated Show resolved Hide resolved
@weihuang-jedi
Copy link
Contributor Author

weihuang-jedi commented Oct 17, 2024 via email

@aerorahul
Copy link
Contributor

This is because in " detect_machine.sh" we did not check if MACHINE_ID is "noaacloud". Do you want add it there?

On Thu, Oct 17, 2024 at 10:57 AM Rahul Mahajan @.> wrote: @.* commented on this pull request. ------------------------------ In modulefiles/gfsutils_noaacloud.intel.lua <#81 (comment)>: > @@ -2,15 +2,15 @@ help([[ Build environment for GFS utilities on NOAA Cloud ]]) -prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core") -prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core") +prepend_path("MODULEPATH", "/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core") +prepend_path("MODULEPATH", "/apps/modules/modulefiles") +load("gnu") +load("stack-intel") +load("stack-intel-oneapi-mpi") +unload("gnu") Why is it returning WARNING: UNKNOWN PLATFORM? It should have detected noaacloud, no? — Reply to this email directly, view it on GitHub <#81 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASMCH67YHS2WERZBWSGNPZ3Z37T77AVCNFSM6AAAAABNNFMMXGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNZVG44TAMBZG4 . You are receiving this because you authored the thread.Message ID: @.***>

It should. Are you setting PW_CSP? Based on PW_CSP, MACHINE_ID is set to noaacloud

@weihuang-jedi
Copy link
Contributor Author

weihuang-jedi commented Oct 17, 2024 via email

Comment on lines 9 to 11
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"

Copy link
Contributor

Choose a reason for hiding this comment

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

what happened to the local change?

ush/module-setup.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

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

looks good.

@aerorahul aerorahul merged commit 4848ecb into NOAA-EMC:develop Oct 18, 2024
3 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.

Support Rocky 8 on CSPs
2 participants