SWDEV-469387 - Fix and enable the test Unit_hipWallClock64_Positive_Basic
Change-Id: I0a6802619e18967da574a610efef8412449bab41
[ROCm/hip-tests commit: 3f28dd3b08]
This commit is contained in:
committad av
Rakesh Roy
förälder
1a64c01c7b
incheckning
bf26f1d052
@@ -55,7 +55,7 @@ add_subdirectory(virtualMemoryManagement)
|
||||
|
||||
if(HIP_PLATFORM STREQUAL "amd")
|
||||
add_subdirectory(callback)
|
||||
#add_subdirectory(clock)
|
||||
add_subdirectory(clock)
|
||||
add_subdirectory(hip_specific)
|
||||
# Vulkan interop APIs currently undefined for Nvidia
|
||||
add_subdirectory(vulkan_interop)
|
||||
@@ -63,4 +63,4 @@ add_subdirectory(gl_interop) # Disabled on NVIDIA due to defect - EXSWHTEC-246
|
||||
endif()
|
||||
add_subdirectory(synchronization)
|
||||
add_subdirectory(launchBounds)
|
||||
add_subdirectory(assertion)
|
||||
add_subdirectory(assertion)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Referens i nytt ärende
Block a user