Skip to content

Commit 551749c

Browse files
committed
Remove default value for atomic ref index
1 parent 402fb64 commit 551749c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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,

0 commit comments

Comments
 (0)