SWDEV-486443 - Skip managed memory test for windows
Change-Id: Id2d99c80e73979173ff7558bedafa723a1eec813
This commit is contained in:
committed by
Rahul Manocha
parent
ed5b962e62
commit
dcc3dd7029
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user