File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
//
9
- // The "sycl-ls" utility lists all platforms/devices discovered by PI similar to
10
- // how clinfo prints this for OpenCL devices.
9
+ // The "sycl-ls" utility lists all platforms/devices discovered by SYCL similar
10
+ // to how clinfo prints this for OpenCL devices.
11
11
//
12
12
// There are two types of output:
13
13
// concise (default) and
@@ -100,7 +100,7 @@ int main(int argc, char **argv) {
100
100
verbose = true ;
101
101
else {
102
102
std::cout << " Usage: sycl-ls [--verbose]" << std::endl;
103
- return - 1 ;
103
+ return EXIT_FAILURE ;
104
104
}
105
105
106
106
auto Platforms = platform::get_platforms ();
@@ -132,7 +132,7 @@ int main(int argc, char **argv) {
132
132
}
133
133
134
134
if (!verbose) {
135
- return 0 ;
135
+ return EXIT_SUCCESS ;
136
136
}
137
137
138
138
// Print the selectors choice in one-line always
@@ -153,5 +153,5 @@ int main(int argc, char **argv) {
153
153
printSelectorChoice (custom_selector (info::device_type::accelerator),
154
154
" custom_selector(acc) : " );
155
155
156
- return 0 ;
156
+ return EXIT_SUCCESS ;
157
157
}
You can’t perform that action at this time.
0 commit comments