cray platform: unload cray-mpich (#29898)
This commit is contained in:
parent
b45e734b59
commit
6e5cba7b82
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue