SWDEV-494221 - Fix hipPerfDispatchSpeed test

- Do an hipEventRecord on null stream, that creates the streams and
  avoids stream creation overhead when we time the core functionality

Change-Id: I117dccc42c92836fa113214d31bf14da49deba77
Esse commit está contido em:
Saleel Kudchadker committed 2024-11-12 13:02:39 -05:00
1 pai b2e3b605a6
commit fb5e1d33d9
2 files changed
+69 -60

No files matched your search

@@ -132,6 +132,10 @@ int main(int argc, char* argv[]) {
CHECK_RESULT(err != hipSuccess, "hipEventCreate failed");
// Do a warm up event record and sync
hipEventRecord(start, NULL);
hipStreamSynchronize(0);
if (doWarmup)
{
hipLaunchKernelGGL(_dispatchSpeed, dim3(blocks), dim3(threads_per_block), 0, hipStream_t(0), srcBuffer);