@@ -201,10 +201,6 @@ int ReadConfiguration(int argc, char** argv)
201201 printf (" Can only produce QA pdf output when input files are specified!\n " );
202202 return 1 ;
203203 }
204- if (configStandalone.timeFrameTime && configStandalone.DebugLevel == 0 ) {
205- printf (" tfTime needs debug >= 1 currently\n " );
206- return 1 ;
207- }
208204 if (configStandalone.eventDisplay ) {
209205 configStandalone.noprompt = 1 ;
210206 }
@@ -792,15 +788,15 @@ int main(int argc, char** argv)
792788 double nClusters = chainTracking->GetTPCMerger ().NMaxClusters ();
793789 if (nClusters > 0 ) {
794790 double nClsPerTF = 550000 . * 1138.3 ;
795- double timePerTF = rec->GetStatKernelTime () / 1000000 . * nClsPerTF / nClusters;
791+ double timePerTF = (configStandalone. DebugLevel ? rec->GetStatKernelTime () : rec-> GetStatWallTime () ) / 1000000 . * nClsPerTF / nClusters;
796792 double nGPUsReq = timePerTF / 0.02277 ;
797793 char stat[1024 ];
798794 snprintf (stat, 1024 , " Sync phase: %.2f sec per 256 orbit TF, %.1f GPUs required" , timePerTF, nGPUsReq);
799795 if (configStandalone.testSyncAsync ) {
800- timePerTF = recAsync->GetStatKernelTime () / 1000000 . * nClsPerTF / nClusters;
796+ timePerTF = (configStandalone. DebugLevel ? recAsync->GetStatKernelTime () : recAsync-> GetStatWallTime () ) / 1000000 . * nClsPerTF / nClusters;
801797 snprintf (stat + strlen (stat), 1024 - strlen (stat), " - Async phase: %f sec per TF" , timePerTF);
802798 }
803- printf (" %s (Extrapolated from %d clusters to %d)\n " , stat, (int )nClusters, (int )nClsPerTF);
799+ printf (" %s (Measured %s time - Extrapolated from %d clusters to %d)\n " , stat, configStandalone. DebugLevel ? " kernel " : " wall " , (int )nClusters, (int )nClsPerTF);
804800 }
805801 }
806802 }
0 commit comments