Skip to content

Commit

Permalink
Update driver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed Nov 2, 2023
1 parent 9b03222 commit 5777b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions driver.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import dpctl
import dpnp
from numba import njit

from numba_dpex import dpjit, kernel
import numba_dpex.experimental as nd_exp
from numba_dpex import Range, dpjit
from numba_dpex.core.kernel_interface.dpcpp_iface import (
AddressSpace,
AtomicRef,
Expand All @@ -12,7 +12,7 @@
from numba_dpex.utils.constants import address_space


@dpjit
@nd_exp.kernel
def test_atomic_ref(a, b):
# i = get_global_id(0)
v = AtomicRef(
Expand All @@ -28,5 +28,5 @@ def test_atomic_ref(a, b):
a = dpnp.ones(10, sycl_queue=q, dtype=dpnp.int64)
b = dpnp.array(0, sycl_queue=q, dtype=dpnp.int64)

test_atomic_ref(a, b)
nd_exp.call_kernel(test_atomic_ref, Range(10), a, b)
print(b)

0 comments on commit 5777b67

Please sign in to comment.