Skip to content

fix handling of NVHPC toolchain with HMNS#5141

Open
lexming wants to merge 7 commits intoeasybuilders:developfrom
lexming:fix-nvhpc-hmns
Open

fix handling of NVHPC toolchain with HMNS#5141
lexming wants to merge 7 commits intoeasybuilders:developfrom
lexming:fix-nvhpc-hmns

Conversation

@lexming
Copy link
Contributor

@lexming lexming commented Feb 25, 2026

fixes #5115

if any(ec.name.startswith(x) for x in CRAY_TOOLCHAIN_NAME_PREFIXES):
paths.append(os.path.join(TOOLCHAIN, ec.name, ec.version))
# special case for NVHPC toolchains that lack standalone MPI component
elif ec.name == "NVHPC" and LooseVersion(ec.version) >= LooseVersion('25.0'):
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we can use this instead

    elif ec.name == "NVHPC" and "GCCcore" not in {dep["name"] for dep in ec["dependencies"]}:

That follows https://github.com/easybuilders/easybuild-framework/pull/5103/changes and allows for custom easyconfigs with NVHPC >= 25.0 that are old-style (we have one of those, for historical reasons).

Copy link
Contributor Author

@lexming lexming Mar 4, 2026

Choose a reason for hiding this comment

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

good point, we can indeed replace the version check with a dependency check here.
Fixed in 18f4579

Copy link
Contributor

@bartoldeman bartoldeman left a comment

Choose a reason for hiding this comment

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

Also, would be nice to have a testcase.

@lexming
Copy link
Contributor Author

lexming commented Mar 4, 2026

@bartoldeman I won't be adding any tests for this. We might still change this behaviour as there was some discussion to add HPCX with its own easyconfig. On top of that, such a test would need toy easyconfigs for old and new NVHPC, which is quite some work.

@lexming
Copy link
Contributor Author

lexming commented Mar 12, 2026

@bartoldeman as discussed, I added the requested unit tests to test_hierarchical_mns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVHPC mpi directory missing in MODULEPATH

2 participants