Skip to content

Commit

Permalink
SYCL: minor device info cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
atafra committed Dec 18, 2024
1 parent 982300c commit caa83e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions devices/sycl/sycl_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,13 @@ OIDN_NAMESPACE_BEGIN
{
for (size_t i = 0; i < syclQueues.size(); ++i)
{
sycl::device syclDevice = syclQueues[i].get_device();

if (syclQueues.size() > 1)
std::cout << " Subdev " << std::setw(2) << i << " : ";
else
std::cout << " Device : ";
std::cout << syclQueues[i].get_device().get_info<sycl::info::device::name>() << std::endl;
std::cout << syclDevice.get_info<sycl::info::device::name>() << std::endl;

std::cout << " Type : SYCL" << std::endl;
std::cout << " Arch : ";
Expand All @@ -335,7 +337,8 @@ OIDN_NAMESPACE_BEGIN
}
std::cout << std::endl;

std::cout << " EUs : " << syclQueues[i].get_device().get_info<sycl::info::device::max_compute_units>() << std::endl;
if (syclDevice.has(sycl::aspect::ext_intel_gpu_eu_count))
std::cout << " EUs : " << syclDevice.get_info<sycl::ext::intel::info::device::gpu_eu_count>() << std::endl;
}

std::cout << " Backend : " << syclContext.get_platform().get_info<sycl::info::platform::name>() << std::endl;
Expand Down

0 comments on commit caa83e5

Please sign in to comment.