Skip to content

Commit d3040d5

Browse files
committed
Remove default value for atomic ref index
1 parent a19cb7d commit d3040d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

numba_dpex/experimental/_kernel_dpcpp_spirv_overloads/_atomic_ref_overloads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def _check_if_supported_ref(ref):
584584
)
585585
def ol_atomic_ref(
586586
ref,
587-
index=0,
587+
index,
588588
memory_order=MemoryOrder.RELAXED,
589589
memory_scope=MemoryScope.DEVICE,
590590
address_space=AddressSpace.GLOBAL,
@@ -655,7 +655,7 @@ def ol_atomic_ref(
655655

656656
def ol_atomic_ref_ctor_impl(
657657
ref,
658-
index=0,
658+
index,
659659
memory_order=MemoryOrder.RELAXED, # pylint: disable=unused-argument
660660
memory_scope=MemoryScope.DEVICE, # pylint: disable=unused-argument
661661
address_space=AddressSpace.GLOBAL, # pylint: disable=unused-argument

numba_dpex/kernel_api/atomic_ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AtomicRef:
1818
def __init__( # pylint: disable=too-many-arguments
1919
self,
2020
ref,
21-
index=0,
21+
index,
2222
memory_order=MemoryOrder.RELAXED,
2323
memory_scope=MemoryScope.DEVICE,
2424
address_space=AddressSpace.GLOBAL,

numba_dpex/tests/experimental/kernel_api_overloads/spv_overloads/test_atomic_fence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_atomic_fence():
2121
def _kernel(item: Item, a, b):
2222
i = item.get_id(0)
2323

24-
bref = AtomicRef(b)
24+
bref = AtomicRef(b, index=0)
2525

2626
if i == 1:
2727
a[i] += 1

0 commit comments

Comments
 (0)