We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982fcc5 commit 926dfaaCopy full SHA for 926dfaa
examples/pybind11/use_dpctl_syclqueue/example.py
@@ -25,9 +25,13 @@
25
26
# Pass dpctl.SyclQueue to Pybind11 extension
27
eu_count = eg.get_max_compute_units(q)
28
+global_mem_size = eg.get_device_global_mem_size(q.sycl_device)
29
+local_mem_size = eg.get_device_local_mem_size(q.sycl_device)
30
31
print(f"EU count returned by Pybind11 extension {eu_count}")
32
print("EU count computed by dpctl {}".format(q.sycl_device.max_compute_units))
33
+print("Device's global memory size: {} bytes".format(global_mem_size))
34
+print("Device's local memory size: {} bytes".format(local_mem_size))
35
36
print("")
37
print("Computing modular reduction using SYCL on a NumPy array")
0 commit comments