Changeset 26239
- Timestamp:
- 05/04/21 19:44:14 (4 years ago)
- Location:
- issm/trunk-jpl/externalpackages
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/emscripten/install.sh
r24381 r26239 5 5 # TODO: 6 6 # - Introduce build step to $ISSM_DIR/jenkins/jenkins.sh to compile Fortran code in $ISSM_DIR/src/c/modules/GiaDefelectionCorex/ to C with f2c 7 # 8 # 7 # - Then, revert $ISSM_DIR/externalpackages/emscripten/install.sh to r24306 and test clean build 8 # - When builtin support for Fortran is available, remove build step 9 9 # 10 10 11 ## Constants 12 # 11 13 VER="latest" # Set this to "latest", or last tag that works in case of failure 14 15 ## Environment 16 # 17 PREFIX="${ISSM_DIR}/externalpackages/emscripten/install" 12 18 13 19 # Get Emscripten SDK (emsdk) driver if we have not previously installed 14 20 # Emscripten. Otherwise, just get the latest version. 15 if [[ ! -d ./install]]; then16 17 21 if [[ ! -d ${PREFIX} ]]; then 22 # Get the emsdk repo 23 git clone https://github.com/emscripten-core/emsdk.git 18 24 19 # Move source to 'install'directory20 mv ./emsdk ./install 25 # Create $PREFIX directory 26 mkdir -p ${PREFIX} 21 27 22 cd ./install 28 # Move source to $PREFIX directory 29 mv emsdk/* ${PREFIX} 30 rm -rf emsdk 31 32 cd ${PREFIX} 23 33 else 24 25 cd ./install 26 34 # Fetch the latest version of the emsdk 35 cd ${PREFIX} 36 git pull 27 37 fi 28 38 29 39 # Download and install the latest SDK tools. 30 ./emsdk install $ VER40 ./emsdk install ${VER} 31 41 32 42 # Make the "latest" SDK "active" for the current user. (writes ~/.emscripten 33 43 # file) 34 ./emsdk activate $ VER44 ./emsdk activate ${VER} 35 45 36 46 # Activate PATH and other environment variables in the current terminal -
issm/trunk-jpl/externalpackages/petsc/install-3.12-linux.sh
r25959 r26239 43 43 --download-hdf5=1 44 44 45 46 45 # Compile and install 47 46 make -
issm/trunk-jpl/externalpackages/petsc/install-3.13-pleiades.sh
r25280 r26239 2 2 set -eu 3 3 4 #Some cleanup5 rm -rf install petsc-3.13.3 src6 mkdir install src7 4 8 # Download from ISSM server9 # $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.13.3.tar.gz' 'petsc-3.13.3.tar.gz'10 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.13.3.tar.gz' 'petsc-3.13.3.tar.gz' 5 ## Constants 6 # 7 VER="3.13.6" 11 8 12 #Untar and move petsc to install directory 13 tar -zxvf petsc-3.13.3.tar.gz 14 mv petsc-3.13.3/* src/ 15 rm -rf petsc-3.13.3 9 # Download source 10 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz' 'petsc-${VER}.tar.gz' 16 11 17 #configure (based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables look for CONFIGURE_OPTIONS) 18 cd src 12 # Unpack source 13 tar -zxvf petsc-${VER}.tar.gz 14 15 # Cleanup 16 rm -rf ${PREFIX} ${PETSC_DIR} 17 mkdir ${PETSC_DIR} 18 19 # Move source to $PETSC_DIR 20 mv petsc-${VER}/* ${PETSC_DIR} 21 rm -rf petsc-${VER} 22 23 24 # Configure 25 # 26 # NOTE: Based on /nasa/petsc/3.7.5/intel_mpt/lib/petsc/conf/petscvariables; look for CONFIGURE_OPTIONS 27 # 28 cd ${PETSC_DIR} 19 29 ./config/configure.py \ 20 --prefix="$ ISSM_DIR/externalpackages/petsc/install" \21 --PETSC_DIR="$ ISSM_DIR/externalpackages/petsc/src" \30 --prefix="${PREFIX}" \ 31 --PETSC_DIR="${PETSC_DIR}" \ 22 32 --with-cc=icc --with-cxx=icpc --with-fc=ifort --with-f77=ifort\ 23 33 -COPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" -CXXOPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" -FOPTFLAGS="-g -O3 -axCORE-AVX2,AVX -xSSE4.2" \ -
issm/trunk-jpl/externalpackages/petsc/install-3.14-linux.sh
r25672 r26239 4 4 5 5 ## Constants 6 # 6 7 VER="3.14.0" 8 9 PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS 10 PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed 7 11 8 12 # Download source … … 13 17 14 18 # Cleanup 15 rm -rf install src16 mkdir install src19 rm -rf ${PREFIX} ${PETSC_DIR} 20 mkdir ${PETSC_DIR} 17 21 18 # Move source to 'src' directory19 mv petsc-${VER}/* src/22 # Move source to $PETSC_DIR 23 mv petsc-${VER}/* ${PETSC_DIR} 20 24 rm -rf petsc-${VER} 21 25 22 26 # Configure 23 cd src27 cd ${PETSC_DIR} 24 28 ./config/configure.py \ 25 --prefix="${ ISSM_DIR}/externalpackages/petsc/install" \26 --PETSC_DIR="${ ISSM_DIR}/externalpackages/petsc/src" \29 --prefix="${PREFIX}" \ 30 --PETSC_DIR="${PETSC_DIR}" \ 27 31 --with-debugging=0 \ 28 32 --with-valgrind=0 \ … … 39 43 --download-hdf5=1 40 44 41 42 45 # Compile and install 43 46 make
Note:
See TracChangeset
for help on using the changeset viewer.