fix kernel filename

[ROCm/composable_kernel commit: 2c48039d0e]
This commit is contained in:
Chao Liu
2021-08-10 22:15:23 +00:00
parent 7d53faec4e
commit a0df0eb029
5 changed files with 20 additions and 49 deletions

View File

@@ -24,32 +24,32 @@ struct KernelTimerImpl
{
KernelTimerImpl()
{
hipEventCreate(&mStart);
hipEventCreate(&mEnd);
hipGetErrorString(hipEventCreate(&mStart));
hipGetErrorString(hipEventCreate(&mEnd));
}
~KernelTimerImpl()
{
hipEventDestroy(mStart);
hipEventDestroy(mEnd);
hipGetErrorString(hipEventDestroy(mStart));
hipGetErrorString(hipEventDestroy(mEnd));
}
void Start()
{
hipDeviceSynchronize();
hipEventRecord(mStart, 0);
hipGetErrorString(hipDeviceSynchronize());
hipGetErrorString(hipEventRecord(mStart, nullptr));
}
void End()
{
hipEventRecord(mEnd, 0);
hipEventSynchronize(mEnd);
hipGetErrorString(hipEventRecord(mEnd, nullptr));
hipGetErrorString(hipEventSynchronize(mEnd));
}
float GetElapsedTime() const
{
float time;
hipEventElapsedTime(&time, mStart, mEnd);
hipGetErrorString(hipEventElapsedTime(&time, mStart, mEnd));
return time;
}