File tree Expand file tree Collapse file tree 3 files changed +30
-15
lines changed Expand file tree Collapse file tree 3 files changed +30
-15
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ int commandLineHelp(void);
83
83
84
84
int main (int argc, char **argv)
85
85
{
86
- Timer tWallClock ( " WallClock " );
87
- tWallClock .Start ();
86
+ Timer tWallClockTotal ( " WallClockTotal " );
87
+ tWallClockTotal .Start ();
88
88
LOG (" Starting CUDA main program. Process ID: " << Utility::GetProcessID ());
89
89
Utility::QueryCUDADevice ();
90
90
@@ -149,6 +149,9 @@ int main(int argc, char **argv)
149
149
ewStart2DOutput ();
150
150
}
151
151
152
+ Timer tWallClockCompute (" WallClockCompute" );
153
+ tWallClockCompute.Start ();
154
+
152
155
Node.copyToGPU ();
153
156
154
157
// Main loop
@@ -236,9 +239,11 @@ int main(int argc, char **argv)
236
239
delete gNode ;
237
240
238
241
LOG (" Program successfully completed" );
239
- tWallClock.Stop ();
240
- LOG (" I/O Time : " << dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
241
- LOG (" Total Execution Time: " << tWallClock.GetTime () - dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
242
+ tWallClockTotal.Stop ();
243
+ tWallClockCompute.Stop ();
244
+ LOG (" I/O Time : " << dAccumulatedIOWriteTime + dAccumulateIOReadTime << " s" );
245
+ LOG (" Compute Time : " << tWallClockCompute.GetTime () << " s" );
246
+ LOG (" Total Execution Time: " << tWallClockTotal.GetTime () - dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
242
247
return 0 ;
243
248
}
244
249
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ int commandLineHelp(void);
82
82
83
83
int main (int argc, char **argv)
84
84
{
85
- Timer tWallClock ( " WallClock " );
86
- tWallClock .Start ();
85
+ Timer tWallClockTotal ( " WallClockTotal " );
86
+ tWallClockTotal .Start ();
87
87
LOG (" Starting HIP main program. Process ID: " << Utility::GetProcessID ());
88
88
Utility::QueryHIPDevice ();
89
89
@@ -149,6 +149,9 @@ int main(int argc, char **argv)
149
149
ewStart2DOutput ();
150
150
}
151
151
152
+ Timer tWallClockCompute (" WallClockCompute" );
153
+ tWallClockCompute.Start ();
154
+
152
155
Node.copyToGPU ();
153
156
154
157
// Main loop
@@ -237,9 +240,11 @@ int main(int argc, char **argv)
237
240
delete gNode ;
238
241
239
242
LOG (" Program successfully completed" );
240
- tWallClock.Stop ();
241
- LOG (" I/O Time : " << dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
242
- LOG (" Total Execution Time: " << tWallClock.GetTime () - dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
243
+ tWallClockTotal.Stop ();
244
+ tWallClockCompute.Stop ();
245
+ LOG (" I/O Time : " << dAccumulatedIOWriteTime + dAccumulateIOReadTime << " s" );
246
+ LOG (" Compute Time : " << tWallClockCompute.GetTime () << " s" );
247
+ LOG (" Total Execution Time: " << tWallClockTotal.GetTime () - dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
243
248
return 0 ;
244
249
}
245
250
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ int commandLineHelp(void);
83
83
84
84
int main (int argc, char **argv)
85
85
{
86
- Timer tWallClock ( " WallClock " );
87
- tWallClock .Start ();
86
+ Timer tWallClockTotal ( " WallClockTotal " );
87
+ tWallClockTotal .Start ();
88
88
LOG (" Starting SYCL main program" ); // /. Process ID: " << Utility::GetProcessID());
89
89
90
90
std::vector<std::string> eWaveFiles (Utility::FileHandler::GetFilesFromDirectory (Utility::FileHandler::GetCurrentDirectory ()));
@@ -148,6 +148,9 @@ int main(int argc, char **argv)
148
148
if (Par.outPropagation )
149
149
ewStart2DOutput ();
150
150
151
+ Timer tWallClockCompute (" WallClockCompute" );
152
+ tWallClockCompute.Start ();
153
+
151
154
Node.copyToGPU ();
152
155
153
156
// Main loop
@@ -237,9 +240,11 @@ int main(int argc, char **argv)
237
240
delete gNode ;
238
241
239
242
LOG (" Program successfully completed" );
240
- tWallClock.Stop ();
241
- LOG (" I/O Time : " << dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
242
- LOG (" Total Execution Time: " << tWallClock.GetTime () - dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
243
+ tWallClockTotal.Stop ();
244
+ tWallClockCompute.Stop ();
245
+ LOG (" I/O Time : " << dAccumulatedIOWriteTime + dAccumulateIOReadTime << " s" );
246
+ LOG (" Compute Time : " << tWallClockCompute.GetTime () << " s" );
247
+ LOG (" Total Execution Time: " << tWallClockTotal.GetTime () - dAccumulatedIOWriteTime - dAccumulateIOReadTime << " s" );
243
248
return 0 ;
244
249
}
245
250
You can’t perform that action at this time.
0 commit comments