Skip to content

Commit 2e503e9

Browse files
committed
[SYCL] address review comments #3
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 9b6c8e2 commit 2e503e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/tools/sycl-ls/sycl-ls.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
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.
1111
//
1212
// There are two types of output:
1313
// concise (default) and
@@ -100,7 +100,7 @@ int main(int argc, char **argv) {
100100
verbose = true;
101101
else {
102102
std::cout << "Usage: sycl-ls [--verbose]" << std::endl;
103-
return -1;
103+
return EXIT_FAILURE;
104104
}
105105

106106
auto Platforms = platform::get_platforms();
@@ -132,7 +132,7 @@ int main(int argc, char **argv) {
132132
}
133133

134134
if (!verbose) {
135-
return 0;
135+
return EXIT_SUCCESS;
136136
}
137137

138138
// Print the selectors choice in one-line always
@@ -153,5 +153,5 @@ int main(int argc, char **argv) {
153153
printSelectorChoice(custom_selector(info::device_type::accelerator),
154154
"custom_selector(acc) : ");
155155

156-
return 0;
156+
return EXIT_SUCCESS;
157157
}

0 commit comments

Comments
 (0)