cray platform: unload cray-mpich (#29898)

This commit is contained in:
Sergey Kosukhin 2022-04-11 23:34:09 +02:00 committed by GitHub
parent b45e734b59
commit 6e5cba7b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -825,12 +825,13 @@ def setup_package(pkg, dirty, context='build'):
for mod in pkg.compiler.modules: for mod in pkg.compiler.modules:
load_module(mod) load_module(mod)
# kludge to handle cray libsci being automatically loaded by PrgEnv # kludge to handle cray mpich and libsci being automatically loaded by
# modules on cray platform. Module unload does no damage when # PrgEnv modules on cray platform. Module unload does no damage when
# unnecessary # unnecessary
on_cray, _ = _on_cray() on_cray, _ = _on_cray()
if on_cray: if on_cray:
module('unload', 'cray-libsci') for mod in ['cray-mpich', 'cray-libsci']:
module('unload', mod)
if target.module_name: if target.module_name:
load_module(target.module_name) load_module(target.module_name)