Closed trwaters closed 4 years ago
Try switching the order of the flags?
Same behavior. Can you reproduce?
You can always manually edit the Makefile as a workaround.
Right, manually editing the Makefile is what led me to uncover this issue.
Try --mpiccmd
instead of --ccmd
. I forget exactly why these are differentiated, but I believe there was some reason for it.
Thanks Chris, that resolves the issue.
Oh yes, I misread the report.
I added --mpiccmd
in https://github.com/PrincetonUniversity/athena/pull/178 so that both --ccmd=/usr/local/bin/gcc
could be passed to the hybrid_linwave.py
regression test and not affect the MPI wrapper compiler builds.
Okay. FYI, I see this is mentioned in the docs for configuring, but there are two occurrences of these lines and only the 2nd mentions "when not using -mpi" for --ccmd
--cxx [compiler] : select a C++ compiler and predefined compiler flags
--ccmd [compiler command] : set a compiler command overriding --cxx
Thanks, fixed this in the Wiki
On LANL's Grizzly, I have loaded 1) intel/19.0.4 2) intel-mpi/2019.4
On the master branch, doing
python configure.py --prob=linear_wave --coord=cartesian --cxx=icc --ccmd=mpiicpc
givesCompilation command: mpiicpc -O3 -std=c++11 -ipo -xhost -inline-forceinline -qopenmp-simd -qopt-prefetch=4 -qoverride-limits -diag-disable 3180
But of course I need the -mpi flag, and upon adding it, i.e. with
python configure.py --prob=linear_wave --coord=cartesian --cxx=icc --ccmd=mpiicpc -mpi
I get insteadCompilation command: mpicxx -O3 -std=c++11 -ipo -xhost -inline-forceinline -qopenmp-simd -qopt-prefetch=4 -qoverride-limits -diag-disable 3180
That is,
mpicxx
instead ofmpiicpc
. This defaulting to the GNU compiler with -mpi does not happen in athena-public-version-1.1.1