We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee569c7 commit 00955bbCopy full SHA for 00955bb
dpctl-capi/source/dpctl_sycl_device_manager.cpp
@@ -56,10 +56,11 @@ void print_device_info(const device &Device)
56
<< Device.get_info<info::device::vendor>() << '\n';
57
ss << std::setw(4) << " " << std::left << std::setw(16) << "Profile"
58
<< 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';
61
ss << std::setw(4) << " " << std::left << std::setw(16) << "Device type";
-
- auto devTy = Device.get_info<info::device::device_type>();
62
- ss << DPCTL_DeviceTypeToStr(devTy);
+ ss << DPCTL_DeviceTypeToStr(Device.get_info<info::device::device_type>())
63
+ << '\n';
64
65
std::cout << ss.str();
66
}
0 commit comments