[SWDEV-468555] - Fix hipMemGetAddressRange Negative test

Change-Id: I1dd195f3d1deaf90d86afdd17cac687220f53a0c
Ta zmiana jest zawarta w:
Rahul Manocha authored and Rakesh Roy committed 2024-07-22 12:15:25 -04:00
1 rodzic 090c4cdda6
złożenie 810489ee3b
3 plików zmienionych
+2 -4

Żadne pliki nie pasują do Twojego wyszukiwania

-1
Wyświetl plik
@@ -49,7 +49,6 @@
"Unit_hipKernelNameRef_Negative_Parameters",
"Unit_hipMemAdvise_AccessedBy_All_Devices",
"Unit_hipMemAdvise_No_Flag_Interference",
"Unit_hipMemGetAddressRange_Negative",
"NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238",
"Unit_hipDrvMemcpy3D_Positive_Array",
"Unit_hipDrvMemcpy3DAsync_Positive_Array",
-1
Wyświetl plik
@@ -134,7 +134,6 @@
"Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep",
"Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ClonedGrph",
"Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ChldNode",
"Unit_hipMemGetAddressRange_Negative",
"NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238",
"Unit_hipDrvMemcpy3D_Positive_Array",
"Unit_hipDrvMemcpy3DAsync_Positive_Array",
+2 -2
Wyświetl plik
@@ -105,7 +105,7 @@ TEST_CASE("Unit_hipMemGetAddressRange_Negative") {
size_t mem_size = 0;
const auto allocation_size = kPageSize / 2;
const int offset = kPageSize;
LinearAllocGuard<int> host_alloc(LinearAllocs::hipHostMalloc, allocation_size);
LinearAllocGuard<int> dst_alloc(LinearAllocs::hipMalloc, allocation_size);
hipDeviceptr_t dummy_ptr = NULL;
@@ -115,7 +115,7 @@ TEST_CASE("Unit_hipMemGetAddressRange_Negative") {
SECTION("Offset is greater than allocated size") {
HIP_CHECK_ERROR(
hipMemGetAddressRange(&base_ptr, &mem_size,
reinterpret_cast<hipDeviceptr_t>(host_alloc.ptr() + offset)),
reinterpret_cast<hipDeviceptr_t>(dst_alloc.ptr() + offset)),
hipErrorNotFound);
}
}