diff --git a/sycl/source/device_selector.cpp b/sycl/source/device_selector.cpp index ce6011439f4bf..22b3a613467ec 100644 --- a/sycl/source/device_selector.cpp +++ b/sycl/source/device_selector.cpp @@ -37,14 +37,14 @@ device device_selector::select_device() const { int dev_score = (*this)(dev); if (detail::pi::trace(detail::pi::TraceLevel::PI_TRACE_ALL)) { - string_class PlatformVersion = dev.get_info() - .get_info(); + string_class PlatformName = dev.get_info() + .get_info(); string_class DeviceName = dev.get_info(); std::cout << "SYCL_PI_TRACE[all]: " - << "select_device(): -> score = " << score - << ((score < 0) ? "(REJECTED)" : " ") << std::endl + << "select_device(): -> score = " << dev_score + << ((dev_score < 0) ? " (REJECTED)" : "") << std::endl << "SYCL_PI_TRACE[all]: " - << " platform: " << PlatformVersion << std::endl + << " platform: " << PlatformName << std::endl << "SYCL_PI_TRACE[all]: " << " device: " << DeviceName << std::endl; } @@ -67,13 +67,13 @@ device device_selector::select_device() const { if (res != nullptr) { if (detail::pi::trace(detail::pi::TraceLevel::PI_TRACE_BASIC)) { - string_class PlatformVersion = res->get_info() - .get_info(); + string_class PlatformName = res->get_info() + .get_info(); string_class DeviceName = res->get_info(); std::cout << "SYCL_PI_TRACE[all]: " << "Selected device ->" << std::endl << "SYCL_PI_TRACE[all]: " - << " platform: " << PlatformVersion << std::endl + << " platform: " << PlatformName << std::endl << "SYCL_PI_TRACE[all]: " << " device: " << DeviceName << std::endl; }