SWDEV-535070 - Fix compilation error due to unused variable (#418)

Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hip-tests commit: 0c318b4ca5]
This commit is contained in:
Manocha, Rahul
2025-07-16 16:37:23 -07:00
gecommit door GitHub
bovenliggende 54bf215b7d
commit 8c88657993
@@ -54,7 +54,7 @@ bool verify_time_execution(float ratio, float time1, float time2, float expected
bool test_status = false;
#if (HT_WIN == 1)
if (time1 > expected_time1 && time2 > expected_time2) {
if (time1 > ratio * expected_time1 && time2 > ratio * expected_time2) {
#else
if (fabs(time1 - expected_time1) < (ratio * expected_time1) &&
fabs(time2 - expected_time2) < (ratio * expected_time2)) {
@@ -102,7 +102,11 @@ bool kernel_time_execution(void (*kernel)(int, uint64_t), int clock_rate, uint64
HIP_CHECK(hipEventDestroy(start_event2));
HIP_CHECK(hipEventDestroy(end_event2));
#if HT_WIN == 1
float ratio = 1.0f;
#else
float ratio = kernel == kernel_wc64 ? 0.01 : 0.5;
#endif
return verify_time_execution(ratio, time1, time2, expected_time1, expected_time2);
}