Skip to content

Commit 59767cb

Browse files
lower the value of partition keyword from 4 to 2
1 parent 71c5d91 commit 59767cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/python/sycl_queue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def create_queue_from_subdevice():
5555
Create a queue from a sub-device.
5656
"""
5757
cpu_d = dpctl.SyclDevice("opencl:cpu:0")
58-
sub_devs = cpu_d.create_sub_devices(partition=4)
58+
sub_devs = cpu_d.create_sub_devices(partition=2)
5959
q = dpctl.SyclQueue(sub_devs[0])
6060
# a single-device context is created automatically
6161
print(
@@ -69,7 +69,7 @@ def create_queue_from_subdevice_multidevice_context():
6969
Create a queue from a sub-device.
7070
"""
7171
cpu_d = dpctl.SyclDevice("opencl:cpu:0")
72-
sub_devs = cpu_d.create_sub_devices(partition=4)
72+
sub_devs = cpu_d.create_sub_devices(partition=2)
7373
ctx = dpctl.SyclContext(sub_devs)
7474
q = dpctl.SyclQueue(ctx, sub_devs[0], partition="enable_profiling")
7575
print(

0 commit comments

Comments
 (0)