@@ -37,14 +37,14 @@ device device_selector::select_device() const {
37
37
int dev_score = (*this )(dev);
38
38
39
39
if (detail::pi::trace (detail::pi::TraceLevel::PI_TRACE_ALL)) {
40
- string_class PlatformVersion = dev.get_info <info::device::platform>()
41
- .get_info <info::platform::version >();
40
+ string_class PlatformName = dev.get_info <info::device::platform>()
41
+ .get_info <info::platform::name >();
42
42
string_class DeviceName = dev.get_info <info::device::name>();
43
43
std::cout << " SYCL_PI_TRACE[all]: "
44
- << " select_device(): -> score = " << score
45
- << ((score < 0 ) ? " (REJECTED)" : " " ) << std::endl
44
+ << " select_device(): -> score = " << dev_score
45
+ << ((dev_score < 0 ) ? " (REJECTED)" : " " ) << std::endl
46
46
<< " SYCL_PI_TRACE[all]: "
47
- << " platform: " << PlatformVersion << std::endl
47
+ << " platform: " << PlatformName << std::endl
48
48
<< " SYCL_PI_TRACE[all]: "
49
49
<< " device: " << DeviceName << std::endl;
50
50
}
@@ -67,13 +67,13 @@ device device_selector::select_device() const {
67
67
68
68
if (res != nullptr ) {
69
69
if (detail::pi::trace (detail::pi::TraceLevel::PI_TRACE_BASIC)) {
70
- string_class PlatformVersion = res->get_info <info::device::platform>()
71
- .get_info <info::platform::version >();
70
+ string_class PlatformName = res->get_info <info::device::platform>()
71
+ .get_info <info::platform::name >();
72
72
string_class DeviceName = res->get_info <info::device::name>();
73
73
std::cout << " SYCL_PI_TRACE[all]: "
74
74
<< " Selected device ->" << std::endl
75
75
<< " SYCL_PI_TRACE[all]: "
76
- << " platform: " << PlatformVersion << std::endl
76
+ << " platform: " << PlatformName << std::endl
77
77
<< " SYCL_PI_TRACE[all]: "
78
78
<< " device: " << DeviceName << std::endl;
79
79
}
0 commit comments