Changeset 12609


Ignore:
Timestamp:
07/03/12 16:25:54 (13 years ago)
Author:
habbalf
Message:

PETSc dev install for Pleiades. Follow steps 1-3. Steps maybe a bit redundant but it works so far

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/petsc/install-dev-pleiades.sh

    r12567 r12609  
    11#!/bin/bash
    22#Step 0: download
    3 #Step 1: unzip and install
     3#Step 1: install before plapack crasehs
    44#Step 2: After Plapack implodes
    55STEP=0
     
    2626#   -then rename metis in externalpackages to metis2
    2727if [ $STEP -eq 1 ]; then
    28         #Some cleanup
    29         rm -rf install petsc-3.2-p3 src
    30         mkdir install src
    3128
    32         #Download from ISSM server
    33         $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/petsc-3.2-p3.tar.gz' 'petsc-3.2-p3.tar.gz'
    34 
    35         #Untar and move petsc to install directory
    36         tar -zxvf  petsc-3.2-p3.tar.gz
    37         mv petsc-3.2-p3/* src/
    38         rm -rf petsc-3.2-p3
     29        mkdir install
    3930
    4031        #configure
     
    4940                --with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \
    5041                --known-mpi-shared-libraries=1 \
    51                 --with-mpi-lib=/nasa/sgi/mpt/1.25/lib/libmpi.so \
    52                 --with-mpi-include=/nasa/sgi/mpt/1.25/include  \
     42                --with-mpi-lib=/nasa/sgi/mpt/2.04/lib/libmpi.so \
     43                --with-mpi-include=/nasa/sgi/mpt/2.04/include  \
    5344                --download-mumps=yes \
    5445                --download-plapack=yes \
     
    5950                --download-parmetis=yes \
    6051                --download-metis=yes \
     52                --download-trilinos=yes \
     53                --download-euclid=yes \
     54                --download-pastix=yes \
     55                --download-ptscotch=yes \
     56                --download-spooles=yes \
    6157                --download-spai=yes \
     58                --download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
    6259                --FFLAGS=-I/usr/include \
    6360                --with-cc=icc \
     
    8077         --with-shared-libraries=0 \
    8178         --with-blas-lapack-dir=/nasa/intel/mkl/10.0.011/ \
    82          --with-mpi-lib=/nasa/sgi/mpt/1.25/lib/libmpi.so \
    83          --with-mpi-include=/nasa/sgi/mpt/1.25/include  \
     79         --with-mpi-lib=/nasa/sgi/mpt/2.04/lib/libmpi.so \
     80         --with-mpi-include=/nasa/sgi/mpt/2.04/include  \
    8481         --known-mpi-shared-libraries=1 \
    8582         --download-mumps=yes \
     
    8784         --download-blacs=yes  \
    8885         --download-blas=yes \
    89          --download-f-blas-lapack=yes \
     86         --with-f-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/src/$ISSM_ARCH \
    9087         --download-parmetis=yes \
    9188         --download-metis=yes \
    92          --download-spai=yes \
     89         --with-cxx=icpc \
     90         --download-hypre=yes \
     91         --download-trilinos=yes \
     92         --download-prometheus=yes \
     93         --download-euclid=yes \
     94         --download-pastix=yes \
     95         --download-ptscotch=yes \
     96         --download-spooles=yes \
     97         --download-superlu=http://crd.lbl.gov/~xiaoye/SuperLU/superlu_4.3.tar.gz \
     98         --with-spai-dir=$ISSM_DIR/externalpackages/petsc/src/$ISSM_ARCH \
    9399         --with-plapack-dir=$ISSM_DIR/externalpackages/petsc/src/$ISSM_ARCH \
    94          --download-parmetis=yes \
    95100         --FFLAGS=-I/usr/include \
    96101         --with-cc=icc \
     
    100105         --CXXOPTFLAGS=" -O3 -xS" \
    101106         --with-pic=1
    102          cat > src/script.queue << EOF
     107         cat > script.queue << EOF
    103108#PBS -S /bin/bash
    104109#PBS -q debug
     
    109114. /usr/share/modules/init/bash
    110115module load comp-intel/11.1.046
    111 module load mpi/mpt.1.25
     116module load mpi-sgi/mpt.2.04  #DEFINES MPI_Type_create_indexed_block
    112117module load math/intel_mkl_64_10.0.011
    113118export PATH="$PATH:."
Note: See TracChangeset for help on using the changeset viewer.