[petsc-dev] Build petsc-3.2 with "mpicc -cc=icc"

Lisandro Dalcin dalcinl at gmail.com
Tue Sep 6 18:15:12 CDT 2011


On 6 September 2011 19:39, Satish Balay <balay at mcs.anl.gov> wrote:
> spaces cause cmake build grief. Hence this doesn't work on windows
> aswell [for --with-cc='win32fe cl' etc..]..
>
> [this type of compiler swapping is unsupported by us anyway]
>

Well, after wrapping the compiler wrapper, and it seems to work just fine.

$ cat $HOME/bin/mpicc_intel
#!/bin/sh
mpicc -cc=icc $@

$ ./configure --with-cc=mpicc_intel ...


Of course, I could try co pass CFLAGS="-cc=icc"


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169



More information about the petsc-dev mailing list