Changes between Version 16 and Version 17 of InstallPetscAndMpiForProductionBuild


Ignore:
Timestamp:
Apr 3, 2017, 10:53:10 AM (4 years ago)
Author:
fcooper
Comment:

Added additional instructions based on recent experience

Legend:

Unmodified
Added
Removed
Modified
  • InstallPetscAndMpiForProductionBuild

    v16 v17  
    22
    33= PETSc installation for (normal and) production build =
     4
     5
     6
     7
     8
     9= April 2017 Instructions =
     10
     11First get an up to date copy of the [wiki:InstallIntelCompiler Intel compiler], as well as the Intel Fortran compiler (ifort) for installing hypre.
     12
     13Changes from previous instructions:
     14* `--with-clanguage=cxx` does not seem to be necessary, and the [https://www.mcs.anl.gov/petsc/documentation/installation.html#Compilers PETSc installation guide] recommends against it
     15* It is possible to specify which versions of dependencies to install, which is necessary for MPICH and PETSc 3.6.2 as the default MPICH does not seem to play well with the Intel mkl.
     16
     17{{{
     18# Needed for the intel compiler
     19source /opt/intel/bin/compilervars.sh intel64
     20export INTEL_LICENSE_FILE="28519@flexlm.nsms.ox.ac.uk"
     21
     22wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.6.2.tar.gz
     23tar -zxf petsc-lite-3.6.2.tar.gz
     24
     25MPICH=http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz
     26
     27cd ~/petsc-3.6.2/
     28export PETSC_DIR=`pwd`
     29}}}
     30
     31=== PETSc with support for GCC builds ===
     32{{{
     33export PETSC_ARCH=linux-gnu
     34./configure --with-make-np=10 --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-f2cblaslapack=1 --download-mpich=$MPICH --download-hdf5=1 --download-parmetis=1 --download-metis=1 --download-hypre=1 --with-shared-libraries
     35make all test
     36
     37export PETSC_ARCH=linux-gnu-opt
     38./configure --with-make-np=10 --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-f2cblaslapack=1 --download-mpich=$MPICH --download-hdf5=1 --download-parmetis=1 --download-metis=1 --download-hypre=1 --with-shared-libraries --with-debugging=0
     39make all test
     40
     41export PETSC_ARCH=linux-gnu-profile
     42./configure --with-make-np=10 --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-f2cblaslapack=1 --download-mpich=$MPICH --download-hdf5=1 --download-parmetis=1 --download-metis=1 --download-hypre=1 --with-shared-libraries --CFLAGS="-fno-omit-frame-pointer -pg" -CXXFLAGS="-fno-omit-frame-pointer -pg" -LDFLAGS=-pg
     43make all test
     44}}}
     45
     46=== PETSc with support for Intel build ===
     47{{{
     48export PETSC_ARCH=linux-intel
     49./configure --with-make-np=10 --with-cc=icc --with-cxx=icpc --with-fc=ifort --download-f2cblaslapack=1 --download-mpich=$MPICH --download-hdf5=1 --download-parmetis=1 --download-metis=1 --download-hypre=1 --with-shared-libraries
     50make all test
     51}}}
     52
     53=== PETSc with support for !IntelProduction build ===
     54{{{
     55export PETSC_ARCH=linux-intel-opt-mkl
     56./configure --with-make-np=10 --with-cc=icc --with-cxx=icpc --with-fc=ifort --download-mpich=$MPICH --download-hdf5=1 --download-parmetis=1 --download-metis=1 --download-hypre=1 --with-shared-libraries --with-debugging=0 --with-blas-lapack-dir=/opt/intel/composerxe/mkl/lib/intel64/
     57make all test
     58}}}
     59
     60
     61
     62
     63
     64= Older Instructions =
    465
    566First get an up to date copy of the [wiki:InstallIntelCompiler Intel compiler].