Skip to content

Commit de1b1a4

Browse files
test_async_submit to use input array with size a multiple of max_work_group_size
1 parent 20c5d3c commit de1b1a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpctl/tests/test_sycl_kernel_submit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ def test_async_submit():
167167
assert isinstance(kern2Kernel, dpctl_prog.SyclKernel)
168168

169169
status_complete = dpctl.event_status_type.complete
170-
n = 256 * 1024
170+
# choose input size based on capability of the device
171+
f = q.sycl_device.max_work_group_size
172+
n = f * 1024
171173
X = dpt.empty((3, n), dtype="u4", usm_type="device", sycl_queue=q)
172174
first_row = dpctl_mem.as_usm_memory(X[0])
173175
second_row = dpctl_mem.as_usm_memory(X[1])

0 commit comments

Comments
 (0)