SWDEV-469387 - Fix and enable the test Unit_hipWallClock64_Positive_Basic
Change-Id: I0a6802619e18967da574a610efef8412449bab41
[ROCm/hip-tests commit: 3f28dd3b08]
This commit is contained in:
committed by
Rakesh Roy
parent
1a64c01c7b
commit
bf26f1d052
@@ -53,8 +53,8 @@ bool verify_time_execution(float ratio, float time1, float time2, float expected
|
||||
float expected_time2) {
|
||||
bool test_status = false;
|
||||
|
||||
if (fabs(time1 - expected_time1) < ratio * expected_time1 &&
|
||||
fabs(time2 - expected_time2) < ratio * expected_time2) {
|
||||
if (fabs(time1 - expected_time1) < (ratio * expected_time1) &&
|
||||
fabs(time2 - expected_time2) < (ratio * expected_time2)) {
|
||||
INFO("Succeeded: Expected Vs Actual: Kernel1 - " << expected_time1 << " Vs " << time1
|
||||
<< ", Kernel2 - " << expected_time2 << " Vs "
|
||||
<< time2);
|
||||
|
||||
Reference in New Issue
Block a user