Skip to content

Device print info #1029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 26, 2022
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