Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
f42d8c41
Commit
f42d8c41
authored
Mar 20, 2015
by
gsell
Browse files
lib/libem.bash: family 'OPAL' added; load modules listed in file 'with_modules', if exist
parent
d148fbbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
lib/libem.bash
lib/libem.bash
+17
-1
No files found.
lib/libem.bash
View file @
f42d8c41
...
...
@@ -8,7 +8,8 @@ unset CDPATH
shopt
-s
expand_aliases
declare
-r
BUILDSCRIPT
=
$(
cd
$(
dirname
"
$0
"
)
&&
pwd
)
/
$(
basename
"
$0
"
)
declare
-r
BUILDSCRIPT_DIR
=
$(
cd
$(
dirname
"
$0
"
)
&&
pwd
)
declare
-r
BUILDSCRIPT
=
"
${
BUILDSCRIPT_DIR
}
"
/
$(
basename
"
$0
"
)
declare
-rx
ARGS
=
"
$@
"
declare
-rx
SHLIBDIR
=
$(
cd
$(
dirname
"
$BASH_SOURCE
"
)
&&
pwd
)
declare
-r
OS
=
$(
uname
-s
)
...
...
@@ -366,6 +367,17 @@ function _setup_env2() {
MODULE_NAME+
=
"
${
HDF5
}
/
${
HDF5_VERSION
}
/"
MODULE_NAME+
=
"
${
P
}
/
${
V
}
"
;;
OPAL
)
MODULE_RPREFIX
=
"
${
P
}
/
${
V
}
"
MODULE_RPREFIX+
=
"/
${
OPAL
}
/
${
OPAL_VERSION
}
"
MODULE_RPREFIX+
=
"/
${
MPI
}
/
${
MPI_VERSION
}
"
MODULE_RPREFIX+
=
"/
${
COMPILER
}
/
${
COMPILER_VERSION
}
"
MODULE_NAME
=
"
${
COMPILER
}
/
${
COMPILER_VERSION
}
/"
MODULE_NAME+
=
"
${
MPI
}
/
${
MPI_VERSION
}
/"
MODULE_NAME+
=
"
${
OPAL
}
/
${
OPAL_VERSION
}
/"
MODULE_NAME+
=
"
${
P
}
/
${
V
}
"
;;
HDF5_serial
)
MODULE_RPREFIX
=
"
${
P
}
/
${
V
}
"
MODULE_RPREFIX+
=
"/hdf5_serial/
${
HDF5_SERIAL_VERSION
}
"
...
...
@@ -660,6 +672,10 @@ bootstrap='no'
# array collecting all modules specified on the command line via '--with=module'
with_modules
=()
if
[[
-r
"
${
BUILDSCRIPT_DIR
}
/with_modules"
]]
;
then
with_modules+
=(
$(
cat
"
${
BUILDSCRIPT_DIR
}
/with_modules"
)
)
fi
while
((
$#
>
0
))
;
do
case
$1
in
-j
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment