@@ -56,12 +56,18 @@ struct urCommandBufferCommandsTest
5656UUR_INSTANTIATE_DEVICE_TEST_SUITE (urCommandBufferCommandsTest);
5757
5858TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMMemcpyExp) {
59+ // No USM memcpy command in cl_khr_command_buffer
60+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
61+
5962 ASSERT_SUCCESS (urCommandBufferAppendUSMMemcpyExp (
6063 cmd_buf_handle, device_ptrs[0 ], device_ptrs[1 ], allocation_size, 0 ,
6164 nullptr , 0 , nullptr , nullptr , nullptr , nullptr ));
6265}
6366
6467TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMFillExp) {
68+ // No USM fill command in cl_khr_command_buffer
69+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
70+
6571 uint32_t pattern = 42 ;
6672 ASSERT_SUCCESS (urCommandBufferAppendUSMFillExp (
6773 cmd_buf_handle, device_ptrs[0 ], &pattern, sizeof (pattern),
@@ -83,13 +89,21 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferCopyRectExp) {
8389}
8490
8591TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendMemBufferReadExp) {
92+ // No buffer read command in cl_khr_command_buffer
93+ // See https://github.com/KhronosGroup/OpenCL-Docs/issues/1281
94+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
95+
8696 std::array<uint32_t , elements> host_data{};
8797 ASSERT_SUCCESS (urCommandBufferAppendMemBufferReadExp (
8898 cmd_buf_handle, buffers[0 ], 0 , allocation_size, host_data.data (), 0 ,
8999 nullptr , 0 , nullptr , nullptr , nullptr , nullptr ));
90100}
91101
92102TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendMemBufferReadRectExp) {
103+ // No buffer read command in cl_khr_command_buffer
104+ // See https://github.com/KhronosGroup/OpenCL-Docs/issues/1281
105+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
106+
93107 std::array<uint32_t , elements> host_data{};
94108 ur_rect_offset_t origin{0 , 0 , 0 };
95109 ur_rect_region_t region{4 , 4 , 1 };
@@ -99,6 +113,10 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferReadRectExp) {
99113}
100114
101115TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendMemBufferWriteExp) {
116+ // No buffer write command in cl_khr_command_buffer
117+ // See https://github.com/KhronosGroup/OpenCL-Docs/issues/1281
118+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
119+
102120 std::array<uint32_t , elements> host_data{};
103121 ASSERT_SUCCESS (urCommandBufferAppendMemBufferWriteExp (
104122 cmd_buf_handle, buffers[0 ], 0 , allocation_size, host_data.data (), 0 ,
@@ -107,6 +125,10 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferWriteExp) {
107125
108126TEST_P (urCommandBufferCommandsTest,
109127 urCommandBufferAppendMemBufferWriteRectExp) {
128+ // No buffer write command in cl_khr_command_buffer
129+ // See https://github.com/KhronosGroup/OpenCL-Docs/issues/1281
130+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
131+
110132 std::array<uint32_t , elements> host_data{};
111133 ur_rect_offset_t origin{0 , 0 , 0 };
112134 ur_rect_region_t region{4 , 4 , 1 };
@@ -123,12 +145,18 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferFillExp) {
123145}
124146
125147TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMPrefetchExp) {
148+ // No Prefetch command in cl_khr_command_buffer
149+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
150+
126151 ASSERT_SUCCESS (urCommandBufferAppendUSMPrefetchExp (
127152 cmd_buf_handle, device_ptrs[0 ], allocation_size, 0 , 0 , nullptr , 0 ,
128153 nullptr , nullptr , nullptr , nullptr ));
129154}
130155
131156TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMAdviseExp) {
157+ // No advise command in cl_khr_command_buffer
158+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
159+
132160 ASSERT_SUCCESS (urCommandBufferAppendUSMAdviseExp (
133161 cmd_buf_handle, device_ptrs[0 ], allocation_size, 0 , 0 , nullptr , 0 ,
134162 nullptr , nullptr , nullptr , nullptr ));
0 commit comments