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
Этот коммит содержится в:
Saleel Kudchadker
2024-10-30 03:07:29 +00:00
родитель b2e3b605a6
Коммит fb5e1d33d9
2 изменённых файлов: 69 добавлений и 60 удалений
+4
Просмотреть файл
@@ -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);