Skip to content

Commit 00955bb

Browse files
author
Diptorup Deb
committed
Print the backend as part of print_device_info.
1 parent ee569c7 commit 00955bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dpctl-capi/source/dpctl_sycl_device_manager.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ void print_device_info(const device &Device)
5656
<< Device.get_info<info::device::vendor>() << '\n';
5757
ss << std::setw(4) << " " << std::left << std::setw(16) << "Profile"
5858
<< Device.get_info<info::device::profile>() << '\n';
59+
ss << std::setw(4) << " " << std::left << std::setw(16) << "Backend"
60+
<< Device.get_platform().get_backend() << '\n';
5961
ss << std::setw(4) << " " << std::left << std::setw(16) << "Device type";
60-
61-
auto devTy = Device.get_info<info::device::device_type>();
62-
ss << DPCTL_DeviceTypeToStr(devTy);
62+
ss << DPCTL_DeviceTypeToStr(Device.get_info<info::device::device_type>())
63+
<< '\n';
6364

6465
std::cout << ss.str();
6566
}

0 commit comments

Comments
 (0)