Configure script on Cartesius - Missing optimissation flags
I tried configuring on the Cartesius machine in Amsterdam. When using the Intel compiler there are some issues as mpicc does not seem to be set correctly (defaults to gcc). I had to use CC=mpiicc
when attempting to compile which leads to no flags being added.
git clone https://gitlab.cosma.dur.ac.uk/swift/swiftsim.git
cd swiftsim/
./autogen.sh
./configure CC=mpiicc --with-metis
[...]
********************************************************
* WARNING: The guessed CFLAGS don't seem to work with *
* your compiler. *
* Use ./configure CFLAGS=... to specify your own flags *
********************************************************
[...]
Compiler : mpicc -std=gnu99
- vendor : intel
- version : 15.0.0
- flags : -Wall -Werror
MPI enabled : yes
HDF5 enabled : yes
- parallel : no
Metis enabled : yes
libNUMA enabled : yes
configure: creating ./config.status
[...]
Same happens if I run
./configure CC=mpiicc --with-metis --enable-optimization
There is a warning message, which is good. But could we detect when CC is mpiicc and act appropriately ?