<div dir="ltr">Resending with correct -O0 flag.<div><br></div><div><span style="font-size:12.8px">Moorthi,</span><div style="font-size:12.8px">The slow compile is GFS_diagnostics.F90. I have tried many things to reduce the compile time but the only one that worked was compiling at -O0. There is really nothing being done in this routine other than storing diagnostices so I am testing the performance with -O0 vs -O2.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b><font size="4">-O2</font></b></div><div style="font-size:12.8px"><div>/gpfs/hps/emc/global/noscrub/<wbr>James.A.Abeles/fv3gfs.v0beta/<wbr>FV3/gfsphysics&gt; time ftn -DNEW_TAUCTMAX -DSMALL_PE -DNEMS_GSM -fpp -Wp,-w -I/opt/cray/netcdf/4.3.2/<wbr>INTEL/140/include -I/opt/cray/netcdf/4.3.2/<wbr>INTEL/140/include -fno-alias -auto -safe-cray-ptr -ftz -assume byterecl -nowarn -sox -align array64byte -i4 -real-size 32  -O2 -debug minimal -fp-model source -qoverride-limits -I../fms -I../fms/include  -c GFS_layer/GFS_diagnostics.F90 -o GFS_layer/GFS_diagnostics.o</div><div><br></div><div>real    10m3.761s</div><div>user    10m1.842s</div><div>sys     0m0.396s</div><div><br></div><div><b><font size="4">-O0</font></b></div><div>/gpfs/hps/emc/global/noscrub/<wbr>James.A.Abeles/fv3gfs.v0beta/<wbr>FV3/gfsphysics&gt; time ftn -DNEW_TAUCTMAX -DSMALL_PE -DNEMS_GSM -fpp -Wp,-w -I/opt/cray/netcdf/4.3.2/<wbr>INTEL/140/include -I/opt/cray/netcdf/4.3.2/<wbr>INTEL/140/include -fno-alias -auto -safe-cray-ptr -ftz -assume byterecl -nowarn -sox -align array64byte -i4 -real-size 32  -O0 -debug minimal -fp-model source -qoverride-limits -I../fms -I../fms/include  -c GFS_layer/GFS_diagnostics.F90 -o GFS_layer/GFS_diagnostics.o</div><div>real    0m0.981s</div><div>user    0m0.728s</div><div>sys     0m0.072s</div></div><div style="font-size:12.8px"><br></div><div class="gmail_extra" style="font-size:12.8px"><br><div class="gmail_quote"><br></div></div></div></div>