Skip to content

Commit ad7cf73

Browse files
author
Diptorup Deb
committed
Print a more descriptive name for a DpctlSyclQueue type object.
1 parent 5becde4 commit ad7cf73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

numba_dpex/core/types/dpctl_types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def __init__(self, sycl_queue):
2828
self._unique_id = hash(sycl_queue)
2929
except Exception:
3030
self._unique_id = self.rand_digit_str(16)
31-
super(DpctlSyclQueue, self).__init__(name="DpctlSyclQueue")
31+
super(DpctlSyclQueue, self).__init__(
32+
name=f"DpctlSyclQueue on {self._device}"
33+
)
3234

3335
def rand_digit_str(self, n):
3436
return "".join(

0 commit comments

Comments
 (0)