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


[ROCm/hip-tests commit: fb5e1d33d9]
Ta zmiana jest zawarta w:
%! (template.HTML=Saleel Kudchadker)złożyło 2024-11-12 13:02:39 -05:00
1 rodzic 7d8eb4adb8
złożenie 3e10bf3e5e
2 plików zmienionych
+69 -60

Żadne pliki nie pasują do Twojego wyszukiwania

@@ -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);