Skip to content

Commit 7449f4d

Browse files
Property parsing error indicates expected recognized values.
Also fixed a doc-string missing comma.
1 parent 0680523 commit 7449f4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dpctl/_sycl_queue.pyx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ cdef int _parse_queue_properties(object prop) except *:
132132
elif (p == "default"):
133133
res = res | _queue_property_type._DEFAULT_PROPERTY
134134
else:
135-
raise ValueError("queue property '{}' is not understood.".format(prop))
135+
raise ValueError(("queue property '{}' is not understood, "
136+
"expecting 'in_order', 'enable_profiling', or 'default'"
137+
).format(prop))
136138
else:
137139
raise ValueError("queue property '{}' is not understood.".format(prop))
138140
return res
@@ -164,7 +166,7 @@ cdef class SyclQueue(_SyclQueue):
164166
create SyclQueue from default selector
165167
SyclQueue(filter_string, *, /, propery=None)
166168
create SyclQueue from filter selector string
167-
SyclQueue(SyclDevice, *, / property=None)
169+
SyclQueue(SyclDevice, *, /, property=None)
168170
create SyclQueue from give SyclDevice automatically
169171
finding/creating SyclContext.
170172
SyclQueue(SyclContext, SyclDevice, *, /, property=None)

0 commit comments

Comments
 (0)