Changeset 26239


Ignore:
Timestamp:
05/04/21 19:44:14 (4 years ago)
Author:
jdquinn
Message:

CHG: Varied clean up

Location:
issm/trunk-jpl/externalpackages
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/emscripten/install.sh

    r24381 r26239  
    55# TODO:
    66# - 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 #       - 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
     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
    99#
    1010
     11## Constants
     12#
    1113VER="latest" # Set this to "latest", or last tag that works in case of failure
     14
     15## Environment
     16#
     17PREFIX="${ISSM_DIR}/externalpackages/emscripten/install"
    1218
    1319# Get Emscripten SDK (emsdk) driver if we have not previously installed
    1420# Emscripten. Otherwise, just get the latest version.
    15 if [[ ! -d ./install ]]; then
    16         # Get the emsdk repo
    17         git clone https://github.com/emscripten-core/emsdk.git
     21if [[ ! -d ${PREFIX} ]]; then
     22        # Get the emsdk repo
     23        git clone https://github.com/emscripten-core/emsdk.git
    1824
    19         # Move source to 'install' directory
    20         mv ./emsdk ./install
     25        # Create $PREFIX directory
     26        mkdir -p ${PREFIX}
    2127
    22         cd ./install
     28        # Move source to $PREFIX directory
     29        mv emsdk/* ${PREFIX}
     30        rm -rf emsdk
     31
     32        cd ${PREFIX}
    2333else
    24         # Fetch the latest version of the emsdk
    25         cd ./install
    26         git pull
     34        # Fetch the latest version of the emsdk
     35        cd ${PREFIX}
     36        git pull
    2737fi
    2838
    2939# Download and install the latest SDK tools.
    30 ./emsdk install $VER
     40./emsdk install ${VER}
    3141
    3242# Make the "latest" SDK "active" for the current user. (writes ~/.emscripten
    3343# file)
    34 ./emsdk activate $VER
     44./emsdk activate ${VER}
    3545
    3646# Activate PATH and other environment variables in the current terminal
  • issm/trunk-jpl/externalpackages/petsc/install-3.12-linux.sh

    r25959 r26239  
    4343        --download-hdf5=1
    4444
    45 
    4645# Compile and install
    4746make
  • issm/trunk-jpl/externalpackages/petsc/install-3.13-pleiades.sh

    r25280 r26239  
    22set -eu
    33
    4 #Some cleanup
    5 rm -rf install petsc-3.13.3 src
    6 mkdir install src
    74
    8 #Download from ISSM server
    9 #$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#
     7VER="3.13.6"
    118
    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'
    1611
    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
     13tar -zxvf petsc-${VER}.tar.gz
     14
     15# Cleanup
     16rm -rf ${PREFIX} ${PETSC_DIR}
     17mkdir ${PETSC_DIR}
     18
     19# Move source to $PETSC_DIR
     20mv petsc-${VER}/* ${PETSC_DIR}
     21rm -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#
     28cd ${PETSC_DIR}
    1929./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}" \
    2232        --with-cc=icc --with-cxx=icpc --with-fc=ifort --with-f77=ifort\
    2333        -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  
    44
    55## Constants
     6#
    67VER="3.14.0"
     8
     9PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
     10PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
    711
    812# Download source
     
    1317
    1418# Cleanup
    15 rm -rf install src
    16 mkdir install src
     19rm -rf ${PREFIX} ${PETSC_DIR}
     20mkdir ${PETSC_DIR}
    1721
    18 # Move source to 'src' directory
    19 mv petsc-${VER}/* src/
     22# Move source to $PETSC_DIR
     23mv petsc-${VER}/* ${PETSC_DIR}
    2024rm -rf petsc-${VER}
    2125
    2226# Configure
    23 cd src
     27cd ${PETSC_DIR}
    2428./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}" \
    2731        --with-debugging=0 \
    2832        --with-valgrind=0 \
     
    3943        --download-hdf5=1
    4044
    41 
    4245# Compile and install
    4346make
Note: See TracChangeset for help on using the changeset viewer.