source: issm/oecreview/Archive/13393-13976/ISSM-13792-13793.diff@ 14312

Last change on this file since 14312 was 13980, checked in by Mathieu Morlighem, 12 years ago

preparing oecreview for 13393-13976'

File size: 2.8 KB
  • ../trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh

     
    11#!/bin/bash
    2 set -eu
    32#Step 0: download
    43#Step 1: install and write script
    5 STEP=0
     4STEP=1
    65
    76if [ $STEP -eq 0 ]; then
    87        # Adapted from petsc 3.2.
     
    2322# Note: using metis from externalpackages did not work...
    2423# for now downloading new metis
    2524#   -then rename metis in externalpackages to metis2
     25#
     26#               --download-prometheus=yes \
     27#--download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
     28#               --download-plapack=yes \
     29
    2630if [ $STEP -eq 1 ]; then
    2731
    28         mkdir install
    29 
    3032        #configure
    3133        cd src
    3234        ./config/configure.py \
     
    3537                --PETSC_ARCH="$ISSM_ARCH" \
    3638                --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
    3739                --with-debugging=0 \
    38                 --with-shared-libraries=0 \
     40                --with-shared-libraries=1 \
    3941                --with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \
    4042                --known-mpi-shared-libraries=1 \
    41                 --with-mpi-lib=/nasa/sgi/mpt/2.04/lib/libmpi.so \
    42                 --with-mpi-include=/nasa/sgi/mpt/2.04/include  \
     43                --with-mpi=1 \
    4344                --download-mumps=yes \
    44                 --download-plapack=yes \
    4545                --download-scalapack=yes \
    4646                --download-blacs=yes  \
    4747                --download-blas=yes \
     
    5050                --download-metis=yes \
    5151                --download-trilinos=yes \
    5252                --download-euclid=yes \
    53                 --download-pastix=yes \
    54                 --download-ptscotch=yes \
    55                 --download-spooles=yes \
    5653                --download-spai=yes \
    57                 --download-superlu=yes \
     54                --download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
    5855                --download-hypre=yes \
    59                 --download-prometheus=yes \
    60                 --FFLAGS=-I/usr/include \
    61                 --with-cxx=icpc \
    62                 --with-cc=icc \
    63                 --with-fc=ifort \
    64                 --COPTFLAGS=" -O3 -xS" \
    65                 --FOPTFLAGS=" -O3 -xS" \
    66                 --CXXOPTFLAGS=" -O3 -xS" \
    67                 --with-pic=1
     56                --with-cxx=/nasa/sgi/mpt/2.06a67/bin/mpicxx \
     57                --with-fc=/nasa/sgi/mpt/2.06a67/bin/mpif90 \
     58                --COPTFLAGS="-lmpi -O3" \
     59                --FOPTFLAGS="-lmpi -O3" \
     60                --CXXOPTFLAGS="-lmpi -O3"
    6861                cat > script.queue << EOF
    6962#PBS -S /bin/bash
    70 #PBS -q debug
    71 #PBS -l select=1:ncpus=1:model=har
     63#PBS -l select=1:ncpus=1:model=wes
    7264#PBS -l walltime=200
    7365#PBS -W group_list=s1010
    7466#PBS -m e
    7567. /usr/share/modules/init/bash
    76 module load comp-intel/11.1.046
    77 module load mpi-sgi/mpt.2.04  #DEFINES MPI_Type_create_indexed_block
     68module load comp-intel/2012.0.032
     69module load mpi-sgi/mpt.2.06a67 
    7870module load math/intel_mkl_64_10.0.011
    7971export PATH="$PATH:."
    8072export MPI_GROUP_MAX=64
    8173mpiexec -np 1 ./conftest-linux-gnu-ia64-intel.py
    8274EOF
    83         echo "== Follow PETSc's instructions"
     75        echo "== Now: cd src/ "
     76        echo "== qsub -q devel script.queue "
     77        echo "== Then run reconfigure script generated by PETSc and follow instructions"
    8478fi
Note: See TracBrowser for help on using the repository browser.