Commit 6eba68f5 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Add pastix module

parent de9c2e32
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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/tools/${LIB_NAME}
MODULE_DIR=/data/software/modules/libs/${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
+22 −0
Original line number Diff line number Diff line
#%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