Skip to content

Commit 0a598ed

Browse files
committed
[CTS][CUDA][HIP] Skip invalid kernel argument test
CUDA and HIP have limited introspection capabilities so we can't check kernel arguments.
1 parent ef2338b commit 0a598ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/conformance/enqueue/urEnqueueKernelLaunch.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,16 @@ TEST_P(urEnqueueKernelLaunchTest, InvalidWorkGroupSize) {
132132
}
133133

134134
TEST_P(urEnqueueKernelLaunchTest, InvalidKernelArgs) {
135+
ur_platform_backend_t backend;
136+
ASSERT_SUCCESS(urPlatformGetInfo(platform, UR_PLATFORM_INFO_BACKEND,
137+
sizeof(ur_platform_backend_t), &backend,
138+
nullptr));
139+
140+
if (backend == UR_PLATFORM_BACKEND_CUDA ||
141+
backend == UR_PLATFORM_BACKEND_HIP) {
142+
GTEST_FAIL() << "AMD and Nvidia can't check kernel arguments.";
143+
}
144+
135145
// Enqueue kernel without setting any args
136146
ASSERT_EQ_RESULT(urEnqueueKernelLaunch(queue, kernel, n_dimensions,
137147
&global_offset, &global_size,

0 commit comments

Comments
 (0)