Skip to content

Commit 25daa86

Browse files
author
Diptorup Deb
authored
Merge pull request #1431 from IntelPython/update/example-to-use-latest-dpctl-api
Update example to use latest dpctl API.
2 parents 223df44 + 9673d9a commit 25daa86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numba_dpex/examples/kernel/matmul.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _arange_reshaped(shape, dtype):
8383
X = dpt.asarray(X)
8484
Y = dpt.asarray(Y)
8585
device = X.device.sycl_device
86-
result = dpt.zeros((5, 5), dtype, device=device)
86+
result = dpt.zeros((5, 5), dtype=dtype, device=device)
8787
X_slm = kapi.LocalAccessor(shape=work_group_size, dtype=dtype)
8888
Y_slm = kapi.LocalAccessor(shape=work_group_size, dtype=dtype)
8989

0 commit comments

Comments
 (0)