Skip to content

Commit c0e9f69

Browse files
Merge pull request #1029 from IntelPython/Device-print-info
Device print info
2 parents 5ce4f42 + 82d615d commit c0e9f69

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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``.

dpctl/tests/test_usm_ndarray_ctor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ def test_datapi_device():
363363
X.device.sycl_queue
364364
X.device.sycl_device
365365
repr(X.device)
366+
X.device.print_device_info()
366367

367368

368369
def _pyx_capi_fnptr_to_callable(

0 commit comments

Comments
 (0)