@@ -56,12 +56,18 @@ struct urCommandBufferCommandsTest
56
56
UUR_INSTANTIATE_DEVICE_TEST_SUITE (urCommandBufferCommandsTest);
57
57
58
58
TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMMemcpyExp) {
59
+ // No USM memcpy command in cl_khr_command_buffer
60
+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
61
+
59
62
ASSERT_SUCCESS (urCommandBufferAppendUSMMemcpyExp (
60
63
cmd_buf_handle, device_ptrs[0 ], device_ptrs[1 ], allocation_size, 0 ,
61
64
nullptr , 0 , nullptr , nullptr , nullptr , nullptr ));
62
65
}
63
66
64
67
TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMFillExp) {
68
+ // No USM fill command in cl_khr_command_buffer
69
+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
70
+
65
71
uint32_t pattern = 42 ;
66
72
ASSERT_SUCCESS (urCommandBufferAppendUSMFillExp (
67
73
cmd_buf_handle, device_ptrs[0 ], &pattern, sizeof (pattern),
@@ -83,13 +89,21 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferCopyRectExp) {
83
89
}
84
90
85
91
TEST_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
+
86
96
std::array<uint32_t , elements> host_data{};
87
97
ASSERT_SUCCESS (urCommandBufferAppendMemBufferReadExp (
88
98
cmd_buf_handle, buffers[0 ], 0 , allocation_size, host_data.data (), 0 ,
89
99
nullptr , 0 , nullptr , nullptr , nullptr , nullptr ));
90
100
}
91
101
92
102
TEST_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
+
93
107
std::array<uint32_t , elements> host_data{};
94
108
ur_rect_offset_t origin{0 , 0 , 0 };
95
109
ur_rect_region_t region{4 , 4 , 1 };
@@ -99,6 +113,10 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferReadRectExp) {
99
113
}
100
114
101
115
TEST_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
+
102
120
std::array<uint32_t , elements> host_data{};
103
121
ASSERT_SUCCESS (urCommandBufferAppendMemBufferWriteExp (
104
122
cmd_buf_handle, buffers[0 ], 0 , allocation_size, host_data.data (), 0 ,
@@ -107,6 +125,10 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferWriteExp) {
107
125
108
126
TEST_P (urCommandBufferCommandsTest,
109
127
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
+
110
132
std::array<uint32_t , elements> host_data{};
111
133
ur_rect_offset_t origin{0 , 0 , 0 };
112
134
ur_rect_region_t region{4 , 4 , 1 };
@@ -123,12 +145,18 @@ TEST_P(urCommandBufferCommandsTest, urCommandBufferAppendMemBufferFillExp) {
123
145
}
124
146
125
147
TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMPrefetchExp) {
148
+ // No Prefetch command in cl_khr_command_buffer
149
+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
150
+
126
151
ASSERT_SUCCESS (urCommandBufferAppendUSMPrefetchExp (
127
152
cmd_buf_handle, device_ptrs[0 ], allocation_size, 0 , 0 , nullptr , 0 ,
128
153
nullptr , nullptr , nullptr , nullptr ));
129
154
}
130
155
131
156
TEST_P (urCommandBufferCommandsTest, urCommandBufferAppendUSMAdviseExp) {
157
+ // No advise command in cl_khr_command_buffer
158
+ UUR_KNOWN_FAILURE_ON (uur::OpenCL{});
159
+
132
160
ASSERT_SUCCESS (urCommandBufferAppendUSMAdviseExp (
133
161
cmd_buf_handle, device_ptrs[0 ], allocation_size, 0 , 0 , nullptr , 0 ,
134
162
nullptr , nullptr , nullptr , nullptr ));
0 commit comments