PETSc compiler

Satish Balay balay at mcs.anl.gov
Thu Jul 19 09:42:03 CDT 2007


On Thu, 19 Jul 2007, Sumit Vaidya wrote:

> Where is the option to change the compiler?
> 
> I saw $PCC in the bmake/common/variables file. Now I want to change the
> compiler.
> 
>  
> 
> Where should I specify it?

The correct thing to do here is specify the compilers to configure.

./config/configure.py --with-cc=gcc --with-fc=g77 --download-mpich=1 --download-f-blas-lapack=1

If you need to use PETSc from different compilers [or other variation
in options] create multiple installs of PETSc with different values of PETSC_ARCH

./config/configure.py --with-cc=gcc PETSC_ARCH=linux-gcc
make  PETSC_ARCH=linux-gcc
./config/configure.py --with-cc=icc PETSC_ARCH=linux-icc
make PETSC_ARCH=linux-icc

etc..

Satish




More information about the petsc-users mailing list