SWDEV-465152 - Fix and enable the test Unit_hipMemAdvise_AccessedBy_All_Devices
Change-Id: I160d67898898251e3aad7f3b58fe4f60e4186ea8
Этот коммит содержится в:
коммит произвёл
Rakesh Roy
родитель
3bec5e988b
Коммит
08f9020343
@@ -47,7 +47,6 @@
|
||||
"Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Positive_Basic",
|
||||
"Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Positive_Basic",
|
||||
"Unit_hipKernelNameRef_Negative_Parameters",
|
||||
"Unit_hipMemAdvise_AccessedBy_All_Devices",
|
||||
"Unit_hipMemAdvise_No_Flag_Interference",
|
||||
"NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238",
|
||||
"Unit_hipDrvMemcpy3D_Positive_Array",
|
||||
|
||||
@@ -128,7 +128,6 @@
|
||||
"Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Positive_Basic",
|
||||
"Unit_hipKernelNameRef_Negative_Parameters",
|
||||
"Unit_hipKernelNameRef_Positive_Basic",
|
||||
"Unit_hipMemAdvise_AccessedBy_All_Devices",
|
||||
"Unit_hipMemAdvise_No_Flag_Interference",
|
||||
"Unit_hipGraphAddEventRecordNode_Functional_WithoutFlags",
|
||||
"Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep",
|
||||
|
||||
@@ -261,14 +261,16 @@ TEST_CASE("Unit_hipMemAdvise_AccessedBy_All_Devices") {
|
||||
HipTest::HIP_SKIP_TEST("Test needs at least 1 device that supports managed memory");
|
||||
return;
|
||||
}
|
||||
supported_devices.push_back(hipCpuDeviceId);
|
||||
// Disabling this hipCpuDeviceId scenario as it fails due to ROCr issue
|
||||
// Enable it once SWDEV-36994, SWDEV-392002 are fixed
|
||||
// supported_devices.push_back(hipCpuDeviceId);
|
||||
|
||||
LinearAllocGuard<void> alloc(LinearAllocs::hipMallocManaged, kPageSize);
|
||||
for (const auto device : supported_devices) {
|
||||
HIP_CHECK(hipMemAdvise(alloc.ptr(), kPageSize, hipMemAdviseSetAccessedBy, device));
|
||||
}
|
||||
std::vector<int> accessed_by(supported_devices.size(), hipInvalidDeviceId);
|
||||
HIP_CHECK(hipMemRangeGetAttribute(accessed_by.data(), sizeof(accessed_by.data()),
|
||||
HIP_CHECK(hipMemRangeGetAttribute(accessed_by.data(), sizeof(int) * accessed_by.size(),
|
||||
hipMemRangeAttributeAccessedBy, alloc.ptr(), kPageSize));
|
||||
REQUIRE_THAT(accessed_by, Catch::Matchers::Equals(supported_devices));
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user