diff --git a/dpctl/tensor/_device.py b/dpctl/tensor/_device.py index 6cf7106f37..86b9877806 100644 --- a/dpctl/tensor/_device.py +++ b/dpctl/tensor/_device.py @@ -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``. diff --git a/dpctl/tests/test_usm_ndarray_ctor.py b/dpctl/tests/test_usm_ndarray_ctor.py index 20ffa1779c..0b1764d86b 100644 --- a/dpctl/tests/test_usm_ndarray_ctor.py +++ b/dpctl/tests/test_usm_ndarray_ctor.py @@ -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(