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
Этот коммит содержится в:
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user