I’m running some stellar atmosphere code on a Mac. When the code is compiled with the pgf95 compiler using the flags -mp -Mlarge_arrays -O2 -fast -Mconcur
it takes about 3 hours to run.
When I compile the same code using gfortran and the switches
-O2 -fopenmp -m64
it takes about 5 hours to run.
In both cases I’m running nominally on 4 cores, although the gfortran compilation may not
be fully utilizing them based on what I see using “top”.
I’d appreciate any suggestions. The “-fast” in pgf95 seems to do a lot of good things, but I can’t seem to identify anything analogous in gfortran. Thanks for any advice.