Skip to content

Commit 00286b6

Browse files
Added convenience Device.print_device_info method
1 parent 5ce4f42 commit 00286b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/tensor/_device.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ def __repr__(self):
114114
# This is a sub-device
115115
return repr(self.sycl_queue)
116116

117+
def print_device_info(self):
118+
"Outputs information about targeted SYCL device"
119+
self.sycl_device.print_device_info()
120+
117121
def wait(self):
118122
"""
119123
Call ``wait`` method of the underlying ``sycl_queue``.

0 commit comments

Comments
 (0)