2
0

SWDEV-535070 - In windows 2 separate commands may not go back to back and hence actual time taken should be always more than expected but not necessary to be close. (#219)

[ROCm/hip-tests commit: f94fe3c26c]
Este cometimento está contido em:
Patel, Jaydeepkumar
2025-07-08 15:55:49 +05:30
cometido por GitHub
ascendente f05c8ddb2b
cometimento 068f506131
+4
Ver ficheiro
@@ -53,8 +53,12 @@ bool verify_time_execution(float ratio, float time1, float time2, float expected
float expected_time2) {
bool test_status = false;
#if (HT_WIN == 1)
if (time1 > expected_time1 && time2 > expected_time2) {
#else
if (fabs(time1 - expected_time1) < (ratio * expected_time1) &&
fabs(time2 - expected_time2) < (ratio * expected_time2)) {
#endif
INFO("Succeeded: Expected Vs Actual: Kernel1 - " << expected_time1 << " Vs " << time1
<< ", Kernel2 - " << expected_time2 << " Vs "
<< time2);