Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
atlas
please-install
Commits
6eba68f5
Commit
6eba68f5
authored
Sep 18, 2017
by
Matthieu Boileau
Browse files
Add pastix module
parent
de9c2e32
Changes
2
Hide whitespace changes
Inline
Side-by-side
pastix/install.sh
View file @
6eba68f5
...
...
@@ -21,7 +21,7 @@ ARCHIVE=${SRC_DIR}.tar.gz
URL
=
"https://gforge.inria.fr/frs/download.php/file/36212/
${
pastix
}
_
${
LIB_VERSION
}
.tar.bz2"
INSTALL_DIR
=
/data/software/install/
${
SUB_DIR
}
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
MODULE_DIR
=
/data/software/modules/
tool
s/
${
LIB_NAME
}
MODULE_DIR
=
/data/software/modules/
lib
s/
${
LIB_NAME
}
MODULE_PATH
=
${
MODULE_DIR
}
/
${
LIB_VERSION
}
_
${
GCC_SHORT
}
_
${
MPI_SHORT
}
install_lib
()
...
...
@@ -63,7 +63,6 @@ cd $SCRIPT_DIR
mkdir
-p
${
MODULE_DIR
}
export
LIB_NAME
export
LIB_VERSION_SHORT
export
LIB_VERSION
export
INSTALL_DIR
export
GCC_VERSION
...
...
@@ -88,6 +87,6 @@ then
fi
else
install_lib
#
install_module
install_module
fi
pastix/module.tmpl
0 → 100644
View file @
6eba68f5
#%Module1.0#####################################################################
###
### {{ LIB_NAME }} {{ LIB_VERSION }} module
###
proc ModulesHelp { } {
global version prefix
puts stderr "\tlibs/{{ LIB_NAME }}/{{ LIB_VERSION }} - loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
}
module-whatis "Loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
prereq gcc/{{ GCC_VERSION }}
prereq openmpi/{{ MPI_VERSION }}_{{ GCC_SHORT }}
# for Tcl script use only
set prefix {{ INSTALL_DIR }}
prepend-path PATH $prefix/bin
prepend-path LIBRARY_PATH $prefix/lib
prepend-path PKG_CONFIG_PATH $prefix/lib/pkgconfig
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