File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export I_MPI_OFI_LIBRARY_INTERNAL=0
175175export I_MPI_OFI_PROVIDER=efa
176176
177177module purge
178- module load metis/5.1.0 -gcc-10.3.0
178+ module load metis/5.2.1 -gcc-10.3.0
179179module load mpas-omp/7.1-intel-2022.2.0
180180
181181#Create mesh decomposition for the specified MPI ranks
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ MODULES_PATH="/usr/share/Modules/modulefiles"
2222
2323PACKAGE_NAME=" metis"
2424
25- PACKAGE_VERSION=" 5.1.0 "
25+ PACKAGE_VERSION=" 5.2.1 "
2626
2727PACKAGE_ARCHIVE=" ${PACKAGE_NAME} -${PACKAGE_VERSION} .tar.gz"
2828PACKAGE_TAR=$( echo $PACKAGE_ARCHIVE | cut -d' /' -f2)
29- PACKAGE_URL=" http ://glaros.dtc.umn.edu/gkhome/fetch/sw/ ${PACKAGE_NAME} / ${PACKAGE_ARCHIVE }"
29+ PACKAGE_URL=" https ://codeload.github.com/KarypisLab/METIS/tar.gz/refs/tags/v ${PACKAGE_VERSION }"
3030
3131ENVIRONMENT=" gcc/10.3.0;openmpi/4.1.4"
3232
9090 # Retrieve archive
9191 if [ ! -f ${PACKAGE_TAR} ]; then
9292 echo " Download archive"
93- wget ${PACKAGE_URL}
93+ curl -o ${PACKAGE_ARCHIVE} ${PACKAGE_URL}
9494 fi
9595
9696 # Check if archive already exist untar
9797 if [ ! -d ${PACKAGE_TAR} ]; then
9898 echo " Extract archive"
99- tar xzf ${PACKAGE_TAR}
99+ mkdir -p ${PACKAGE_NAME} - ${PACKAGE_VERSION} && tar xzf ${PACKAGE_TAR} -C ${PACKAGE_NAME} - ${PACKAGE_VERSION} --strip-components 1
100100 fi
101101
102- cd ${PACKAGE_NAME} -${PACKAGE_VERSION}
103102
103+ # Download and Install GKlib for metis
104+ git clone https://github.com/KarypisLab/GKlib.git ${WORKDIR} /GKlib && cd ${WORKDIR} /GKlib
105+ make config prefix=${PACKAGE_PATH}
106+ make install
107+
108+ cd ${WORKDIR} /${PACKAGE_NAME} -${PACKAGE_VERSION}
104109 make config prefix=${PACKAGE_PATH}
105110 make install
106111
You can’t perform that action at this time.
0 commit comments