From 9673d9a6afe78c410bf586878e847146dbe9be63 Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Fri, 5 Apr 2024 10:30:53 -0500 Subject: [PATCH] Update example to use latest dpctl API. --- numba_dpex/examples/kernel/matmul.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numba_dpex/examples/kernel/matmul.py b/numba_dpex/examples/kernel/matmul.py index 335d319bda..34742f877e 100644 --- a/numba_dpex/examples/kernel/matmul.py +++ b/numba_dpex/examples/kernel/matmul.py @@ -83,7 +83,7 @@ def _arange_reshaped(shape, dtype): X = dpt.asarray(X) Y = dpt.asarray(Y) device = X.device.sycl_device -result = dpt.zeros((5, 5), dtype, device=device) +result = dpt.zeros((5, 5), dtype=dtype, device=device) X_slm = kapi.LocalAccessor(shape=work_group_size, dtype=dtype) Y_slm = kapi.LocalAccessor(shape=work_group_size, dtype=dtype)