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 d81081f commit 201c3c2Copy full SHA for 201c3c2
sycl/tools/sycl-ls/sycl-ls.cpp
@@ -106,7 +106,7 @@ int main(int argc, char **argv) {
106
return EXIT_FAILURE;
107
}
108
109
- auto Platforms = platform::get_platforms();
+ const auto &Platforms = platform::get_platforms();
110
if (verbose)
111
std::cout << "Platforms: " << Platforms.size() << std::endl;
112
@@ -122,7 +122,7 @@ int main(int argc, char **argv) {
122
std::cout << " Name : " << PlatformName << std::endl;
123
std::cout << " Vendor : " << PlatformVendor << std::endl;
124
125
- auto Devices = Platform.get_devices();
+ const auto &Devices = Platform.get_devices();
126
127
std::cout << " Devices : " << Devices.size() << std::endl;
128
uint32_t DeviceNum = 0;
0 commit comments