Skip to content

Commit bc2a03a

Browse files
bratpiorkabb-ur
authored andcommitted
extend UUR_KNOWN_FAILURE macro to check platform and disable wg size test (#21528)
Extend UUR_KNOWN_FAILURE macro to check platform name and version (e.g. CUDA 13) and disable urEnqueueKernelLaunchKernelWgSizeTest on CUDA 13. Tracker: intel/llvm#21527
1 parent aa7c7f2 commit bc2a03a

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

test/conformance/enqueue/urEnqueueKernelLaunch.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ TEST_P(urEnqueueKernelLaunchTest, InvalidWorkGroupSize) {
230230

231231
TEST_P(urEnqueueKernelLaunchKernelWgSizeTest, Success) {
232232
UUR_KNOWN_FAILURE_ON(uur::LevelZero{}, uur::LevelZeroV2{});
233+
// https://github.com/intel/llvm/issues/21527
234+
UUR_KNOWN_FAILURE_ON(uur::CUDA{"13."});
233235

234236
ASSERT_SUCCESS(urEnqueueKernelLaunch(queue, kernel, n_dimensions,
235237
global_offset.data(), global_size.data(),
@@ -238,6 +240,9 @@ TEST_P(urEnqueueKernelLaunchKernelWgSizeTest, Success) {
238240
}
239241

240242
TEST_P(urEnqueueKernelLaunchKernelWgSizeTest, SuccessWithExplicitLocalSize) {
243+
// https://github.com/intel/llvm/issues/21527
244+
UUR_KNOWN_FAILURE_ON(uur::CUDA{"13."});
245+
241246
ASSERT_SUCCESS(urEnqueueKernelLaunch(
242247
queue, kernel, n_dimensions, global_offset.data(), global_size.data(),
243248
wg_size.data(), nullptr, 0, nullptr, nullptr));

test/conformance/testing/include/uur/known_failure.h

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,27 @@ isKnownFailureOn(const std::tuple<ur_platform_handle_t, Param> &param,
134134
inline bool isKnownFailureOn(const DeviceTuple &param,
135135
const std::vector<Matcher> &matchers) {
136136
auto adapterInfo = detail::getAdapterInfo(param.adapter);
137-
std::string name;
138-
uur::GetDeviceInfo<std::string>(param.device, UR_DEVICE_INFO_NAME, name);
137+
138+
std::string deviceName, platformName, platformVersion;
139+
uur::GetDeviceInfo<std::string>(param.device, UR_DEVICE_INFO_NAME,
140+
deviceName);
141+
uur::GetPlatformInfo<std::string>(param.platform, UR_PLATFORM_INFO_NAME,
142+
platformName);
143+
uur::GetPlatformInfo<std::string>(param.platform, UR_PLATFORM_INFO_VERSION,
144+
platformVersion);
145+
139146
for (const auto &matcher : matchers) {
140-
if (matcher.matches(adapterInfo, name)) {
147+
if (matcher.matches(adapterInfo, deviceName)) {
148+
return true;
149+
}
150+
if (matcher.matches(adapterInfo, platformName)) {
151+
return true;
152+
}
153+
if (matcher.matches(adapterInfo, platformVersion)) {
141154
return true;
142155
}
143156
}
157+
144158
return false;
145159
}
146160

0 commit comments

Comments
 (0)