Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
martygrant committed Jan 23, 2025
1 parent e96d2c5 commit 1ce6d4e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/conformance/device/urDeviceGetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1968,6 +1968,8 @@ TEST_P(urDeviceGetInfoTest, SuccessESIMDSupported) {
}

TEST_P(urDeviceGetInfoTest, SuccessComponentDevices) {
UUR_KNOWN_FAILURE_ON(uur::LevelZero{}, uur::LevelZeroV2{});

const ur_device_info_t property_name = UR_DEVICE_INFO_COMPONENT_DEVICES;

uint32_t device_count = 0;
Expand Down Expand Up @@ -2006,11 +2008,18 @@ TEST_P(urDeviceGetInfoTest, SuccessComponentDevices) {
ASSERT_NE(componentDevice, nullptr);
}
} else {
size_t size = 999;
size_t property_size = 999;

ASSERT_SUCCESS_OR_OPTIONAL_QUERY(
urDeviceGetInfo(device, property_name, 0, nullptr, &size),
urDeviceGetInfo(device, property_name, 0, nullptr, &property_size),
property_name);
ASSERT_EQ(size, 0);
ASSERT_EQ(property_size, 0);

std::vector<ur_device_handle_t> componentDevices(property_size);
ASSERT_SUCCESS(urDeviceGetInfo(device, property_name, property_size,
componentDevices.data(), nullptr));

ASSERT_TRUE(componentDevices.empty());
}
}
}
Expand Down

0 comments on commit 1ce6d4e

Please sign in to comment.