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:
cometido por
GitHub
ascendente
f05c8ddb2b
cometimento
068f506131
@@ -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);
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador