Skip to content

Commit bca41f1

Browse files
Insert positional/keyword arguments only delimites in signature of dpctl.utils
1 parent becada0 commit bca41f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dpctl/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from ._onetrace_context import onetrace_enabled
3939

4040

41-
def intel_device_info(dev):
41+
def intel_device_info(dev, /):
4242
"""intel_device_info(sycl_device)
4343
4444
For Intel(R) GPU devices returns a dictionary

dpctl/utils/_compute_follows_data.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ cdef bint queue_equiv(SyclQueue q1, SyclQueue q2):
4848
return q1.__eq__(q2)
4949

5050

51-
def get_execution_queue(qs):
51+
def get_execution_queue(qs, /):
5252
""" Given a list of :class:`dpctl.SyclQueue` objects
5353
returns the execution queue under compute follows data paradigm,
5454
or returns `None` if queues are not equal.
@@ -71,7 +71,7 @@ def get_execution_queue(qs):
7171
return qs[0]
7272

7373

74-
def get_coerced_usm_type(usm_types):
74+
def get_coerced_usm_type(usm_types, /):
7575
""" Given a list of strings denoting the types of USM allocations
7676
for input arrays returns the type of USM allocation for the output
7777
array(s) per compute follows data paradigm.
@@ -122,7 +122,7 @@ def _validate_usm_type_disallow_none(usm_type):
122122
)
123123

124124

125-
def validate_usm_type(usm_type, allow_none=True):
125+
def validate_usm_type(usm_type, /, *, allow_none=True):
126126
""" validate_usm_type(usm_type, allow_none=True)
127127
128128
Raises an exception if `usm_type` is invalid.

0 commit comments

Comments
 (0)