Changeset 24331


Ignore:
Timestamp:
11/14/19 12:36:05 (5 years ago)
Author:
jdquinn
Message:

CHG: Will have to wait for upgrade to Ubuntu 18 to use latest versions of MPICH and PETSc (alternatively, gfortran could be upgraded, but we need to update Ubuntu at some point anyhow)

Location:
issm/trunk-jpl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/mpich/install-3.2-linux64.sh

    r23435 r24331  
    22set -eu
    33
    4 #Some cleanup
    5 rm -rf src install mpich-3.2
     4
     5## Constants
     6#
     7VER="3.2"
     8
     9# Download source
     10$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/mpich-${VER}.tar.gz" "mpich-${VER}.tar.gz"
     11
     12# Unpack source
     13tar -zxvf  mpich-$VER.tar.gz
     14
     15# Cleanup
     16rm -rf src install
    617mkdir src install
    718
    8 #Download from ISSM server
    9 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/mpich-3.2.tar.gz' 'mpich-3.2.tar.gz'
     19# Move source into 'src' directory
     20mv mpich-$VER/* src
     21rm -rf mpich-$VER
    1022
    11 #Untar
    12 tar -zxvf  mpich-3.2.tar.gz
    13 
    14 #Move mpich into src directory
    15 mv mpich-3.2/* src
    16 rm -rf mpich-3.2
    17 
    18 #Configure mpich
     23# Configure
    1924cd src
    2025./configure \
    21         --prefix="$ISSM_DIR/externalpackages/mpich/install" \
     26        --prefix="${ISSM_DIR}/externalpackages/mpich/install" \
    2227        --enable-shared
    2328
    24 #Compile mpich (this new version supports parallel make)
     29# Compile and install
    2530if [ $# -eq 0 ]; then
    2631        make
     32        make install
    2733else
    2834        make -j $1
     35        make -j $1 install
    2936fi
    30 make install
     37
     38# Return to initial directory
     39cd ..
  • issm/trunk-jpl/externalpackages/petsc/install-3.7-linux64.sh

    r23435 r24331  
    22set -eu
    33
    4 #Some cleanup
    5 rm -rf install petsc-3.7.6 src
     4
     5## Constants
     6#
     7VER="3.7.6"
     8
     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"
     11
     12# Unpack source
     13tar -zxvf  petsc-$VER.tar.gz
     14
     15# Cleanup
     16rm -rf install src
    617mkdir install src
    718
    8 #Download from ISSM server
    9 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'https://issm.ess.uci.edu/files/externalpackages/petsc-lite-3.7.6.tar.gz' 'petsc-3.7.6.tar.gz'
     19# Move source to 'src' directory
     20mv petsc-$VER/* src/
     21rm -rf petsc-$VER
    1022
    11 #Untar and move petsc to install directory
    12 tar -zxvf  petsc-3.7.6.tar.gz
    13 mv petsc-3.7.6/* src/
    14 rm -rf petsc-3.7.6
    15 
    16 #configure
     23# Configure
    1724cd src
    1825./config/configure.py \
    19         --prefix="$ISSM_DIR/externalpackages/petsc/install" \
    20         --with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
    21         --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
     26        --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
     27        --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
     28        --with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
     29        --with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \
     30        --with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \
    2231        --with-debugging=0 \
    2332        --with-valgrind=0 \
     
    2534        --with-ssl=0 \
    2635        --with-shared-libraries=1 \
     36        --download-zlib=1\
     37        --download-hdf5=1 \
     38        --download-netcdf=1 \
    2739        --download-metis=1 \
    2840        --download-parmetis=1 \
    29         --download-mumps=1 \
    3041        --download-scalapack=1 \
    31         --download-fblaslapack=1 \
    32         --with-pic=1
     42        --download-mumps=1
    3343
    34 #Compile and intall
    35 make
    36 make install
     44# Compile and install
     45if [ $# -eq 0 ]; then
     46        make
     47        make install
     48else
     49        make -j $1
     50        make -j $1 install
     51fi
     52
     53# Return to initial directory
     54cd ..
  • issm/trunk-jpl/jenkins/linux64_ross

    r24330 r24331  
    33#-------------------------------#
    44
    5 #MATLAB path
     5# MATLAB path
    66MATLAB_PATH="/usr/local/MATLAB/R2015a"
    77
    8 #ISSM CONFIGURATION
    9 ISSM_CONFIG='--prefix=$ISSM_DIR \
     8# ISSM CONFIGURATION
     9ISSM_CONFIG='\
     10        --prefix=$ISSM_DIR \
    1011        --disable-static \
    1112        --with-matlab-dir=$MATLAB_PATH \
    1213        --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.9 -lgfortran" \
    13         --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
     14        --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include \
    1415        --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/mpich/install/lib -lmpi -lmpicxx -lmpifort" \
    1516        --with-blas-lapack-dir=$ISSM_DIR/externalpackages/lapack/install \
     
    3738#-----------------------------------#
    3839
    39 #List of external packages to be installed and their installation scripts
     40# List of external packages to be installed and their installation scripts
    4041EXTERNALPACKAGES="
    4142        autotools       install.sh
    4243        cmake           install.sh
    43         mpich           install-3.3.sh
     44        mpich           install-3.2-linux64.sh
    4445        lapack          install-3.8-linux.sh
    45         petsc           install-3.11-linux.sh
     46        petsc           install-3.7-linux64.sh
    4647        triangle        install-linux64.sh
    4748        chaco           install.sh
  • issm/trunk-jpl/jenkins/linux64_ross_python

    r24237 r24331  
    1 
    21#-------------------------------#
    32# 1: ISSM general configuration #
     
    109        --with-python-numpy-dir=/usr/local/lib/python2.7/dist-packages/numpy \
    1110        --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.9 -lgfortran" \
    12         --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
    13         --with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpi -lmpicxx -lmpifort" \
     11        --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include \
     12        --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/mpich/install/lib -lmpi -lmpicxx -lmpifort" \
     13        --with-blas-lapack-dir=$ISSM_DIR/externalpackages/lapack/install \
    1414        --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
    15         --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
    1615        --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \
    1716        --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
    1817        --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
    1918        --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
    20         --with-chaco-dir="$ISSM_DIR/externalpackages/chaco/install" \
     19        --with-chaco-dir=$ISSM_DIR/externalpackages/chaco/install \
    2120        --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
     21        --with-semic-dir=$ISSM_DIR/externalpackages/semic/install \
    2222        --with-numthreads=4 \
    2323        --enable-development \
    24         --enable-debugging '
     24        --enable-debugging \
     25'
    2526
    26 #PYTHON and MATLAB testing
     27# Test suites
    2728MATLAB_TEST=0
    2829PYTHON_TEST=1
     30JAVASCRIPT_TEST=0
     31EXAMPLES_TEST=0
    2932
    3033#-----------------------------------#
     
    3235#-----------------------------------#
    3336
    34 #List of external packages to be installed and their installation scripts
    35 EXTERNALPACKAGES="autotools     install.sh
    36                                                 cmake         install.sh
    37                                                 mpich         install-3.2-linux64.sh
    38                                                 petsc         install-3.7-linux64.sh
    39                                                 triangle      install-linux64.sh
    40                                                 chaco         install.sh
    41                                                 m1qn3         install.sh
    42                                                 shell2junit   install.sh"
     37# List of external packages to be installed and their installation scripts
     38EXTERNALPACKAGES="
     39        autotools       install.sh
     40        cmake           install.sh
     41        mpich           install-3.2-linux64.sh
     42        lapack          install-3.8-linux.sh
     43        petsc           install-3.7-linux64.sh
     44        triangle        install-linux64.sh
     45        chaco           install.sh
     46        m1qn3           install.sh
     47        semic           install.sh
     48        shell2junit     install.sh
     49"
    4350
    4451#-----------------#
     
    4855#number of cpus used in ISSM installation and compilation (one is usually
    4956#safer as some packages are very sensitive to parallel compilation)
    50 NUMCPUS_INSTALL=10
     57NUMCPUS_INSTALL=8
    5158
    5259#number of cpus used in the nightly runs.
    53 NUMCPUS_RUN=5
     60NUMCPUS_RUN=8
    5461
    5562#Nightly run options. The matlab routine runme.m will be called
  • issm/trunk-jpl/jenkins/linux64_ross_se

    r24330 r24331  
    4242        autotools       install.sh
    4343        cmake           install.sh
    44         mpich           install-3.3.sh
     44        mpich           install-3.2-linux64.sh
    4545        lapack          install-3.8-linux.sh
    46         petsc           install-3.11-linux.sh
     46        petsc           install-3.7-linux64.sh
    4747        triangle        install-linux64.sh
    4848        chaco           install.sh
Note: See TracChangeset for help on using the changeset viewer.