Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
a035fa11
Commit
a035fa11
authored
4 years ago
by
Gregory Becker
Browse files
Options
Downloads
Patches
Plain Diff
shasta PrgEnv module unloaded by unloading component
parent
64eb5522
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/spack/build_environment.py
+2
-1
2 additions, 1 deletion
lib/spack/spack/build_environment.py
lib/spack/spack/util/module_cmd.py
+11
-8
11 additions, 8 deletions
lib/spack/spack/util/module_cmd.py
with
13 additions
and
9 deletions
lib/spack/spack/build_environment.py
+
2
−
1
View file @
a035fa11
...
...
@@ -755,7 +755,8 @@ def setup_package(pkg, dirty):
# kludge to handle cray libsci being automatically loaded by PrgEnv
# modules on cray platform. Module unload does no damage when
# unnecessary
module
(
'
unload
'
,
'
cray-libsci
'
)
if
False
:
module
(
'
unload
'
,
'
cray-libsci
'
)
if
pkg
.
architecture
.
target
.
module_name
:
load_module
(
pkg
.
architecture
.
target
.
module_name
)
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/util/module_cmd.py
+
11
−
8
View file @
a035fa11
...
...
@@ -99,14 +99,17 @@ def load_module(mod):
# We do this without checking that they are already installed
# for ease of programming because unloading a module that is not
# loaded does nothing.
text
=
module
(
'
show
'
,
mod
).
split
()
for
i
,
word
in
enumerate
(
text
):
if
word
==
'
conflict
'
:
module
(
'
unload
'
,
text
[
i
+
1
])
# Load the module now that there are no conflicts
# Some module systems use stdout and some use stderr
module
(
'
load
'
,
mod
)
if
'
PrgEnv
'
not
in
mod
:
module
(
'
swap
'
,
mod
)
else
:
text
=
module
(
'
show
'
,
mod
).
split
()
for
i
,
word
in
enumerate
(
text
):
if
word
==
'
conflict
'
:
module
(
'
unload
'
,
text
[
i
+
1
])
# Load the module now that there are no conflicts
# Some module systems use stdout and some use stderr
module
(
'
load
'
,
mod
)
def
get_path_args_from_module_line
(
line
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment