Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dpctl/tensor/_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ def __repr__(self):
# This is a sub-device
return repr(self.sycl_queue)

def print_device_info(self):
"Outputs information about targeted SYCL device"
self.sycl_device.print_device_info()

def wait(self):
"""
Call ``wait`` method of the underlying ``sycl_queue``.
Expand Down
1 change: 1 addition & 0 deletions dpctl/tests/test_usm_ndarray_ctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ def test_datapi_device():
X.device.sycl_queue
X.device.sycl_device
repr(X.device)
X.device.print_device_info()


def _pyx_capi_fnptr_to_callable(
Expand Down