SWDEV-486443 - Skip managed memory test for windows

Change-Id: Id2d99c80e73979173ff7558bedafa723a1eec813
此提交包含在:
Rahul Manocha
2024-10-17 16:32:45 -07:00
提交者 Rahul Manocha
父節點 ed5b962e62
當前提交 dcc3dd7029
+10
查看文件
@@ -50,6 +50,16 @@ TEST_CASE("Unit_hipModuleGetGlobal_Functional") {
size_t xSize;
int data;
HIP_CHECK(hipGetDeviceCount(&numDevices));
for (int i = 0; i < numDevices; i++) {
int managed_memory = 0;
HIPCHECK(hipDeviceGetAttribute(&managed_memory,
hipDeviceAttributeManagedMemory,
i));
if (!managed_memory) {
HipTest::HIP_SKIP_TEST("managed memory access not supported on device");
return;
}
}
for (int i = 0; i < numDevices; i++) {
HIP_CHECK(hipSetDevice(i));
hipDevice_t device;