<div dir="ltr">Moorthi,<div>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><br></div><div><b><font size="4">-O2</font></b></div><div><div>/gpfs/hps/emc/global/noscrub/James.A.Abeles/fv3gfs.v0beta/FV3/gfsphysics&gt; time ftn -DNEW_TAUCTMAX -DSMALL_PE -DNEMS_GSM -fpp -Wp,-w -I/opt/cray/netcdf/4.3.2/INTEL/140/include -I/opt/cray/netcdf/4.3.2/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/James.A.Abeles/fv3gfs.v0beta/FV3/gfsphysics&gt; time ftn -DNEW_TAUCTMAX -DSMALL_PE -DNEMS_GSM -fpp -Wp,-w -I/opt/cray/netcdf/4.3.2/INTEL/140/include -I/opt/cray/netcdf/4.3.2/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>real    0m0.981s</div><div>user    0m0.728s</div><div>sys     0m0.072s</div></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 12, 2017 at 2:01 PM, Shrinivas Moorthi <span dir="ltr">&lt;<a href="mailto:shrinivas.moorthi@noaa.gov" target="_blank">shrinivas.moorthi@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="m_97448431609486913moz-cite-prefix">How can we speed up compiling
      &quot;GFS_restart&quot;?  It takes for ever.<br>
      Thanks<br>
      Moorthi<br>
      On 05/12/2017 01:52 PM, Samuel Trahan - NOAA Affiliate wrote:<br>
    </div>
    </div></blockquote></div><br></div></div>