In going from one version of my Fortran program to another, I've somehow increased the run time from 24:10 (24 minutes) to 35:34. Looking over the code changes, there's a few more algebraic expressions, changed FORMAT statements, some extra assignments, a few DATA statements - nothing that we haven't done before. This only happens in release mode:
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" GenAlternateCodePaths="codeForAVX" IntegerKIND="integerKIND8" RealKIND="realKIND8" LocalSavedScalarsZero="true" FloatingPointExceptionHandling="fpe0" FlushDenormalResultsToZero="true" Traceback="true"/>
In debug mode, the two code versions have pretty much identical run times. I tried to put major subroutines from the new version into the old version, one at a time, to figure out which one is causing the slow-down; apparently none of them are. I tried to run it through a trial version of VTune, with flags like this:
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" GenAlternateCodePaths="codeForAVX" WarnInterfaces="true" IntegerKIND="integerKIND8" RealKIND="realKIND8" LocalSavedScalarsZero="true" FloatingPointExceptionHandling="fpe0" FlushDenormalResultsToZero="true" Traceback="true" RuntimeChecks="rtChecksAll" BoundsCheck="true" RuntimeLibrary="rtMultiThreadedDebug" Interfaces="true"/>
But I got identical run times between the two code versions again. With 15 MB of source code, I'm worried if I may be hitting some kind of compiler limit - one of my configurations caused this error:
catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.
(I did report it btw)
Any ideas on what's the best way to figure out why my run time suddenly jumped up by 46%? By the way, I tried the same experiment on OpenVMS, and the difference in run times in release mode is only 28%. My test machine is Windows8/Xeon E5-2687W Intel(R) Visual Fortran Compiler XE 12.1.4.325 [Intel(R) 64]




