Skip to content

Commit 70593d6

Browse files
[SYCL] Redirect warning from using SYCL_DEVICE_FILTER with sycl-ls (#5847)
Redirect warning from using SYCL_DEVICE_FILTER with sycl-ls to std::cerr (MKL request)
1 parent 8feb558 commit 70593d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ int main(int argc, char **argv) {
107107

108108
const char *filter = std::getenv("SYCL_DEVICE_FILTER");
109109
if (filter) {
110-
std::cout << "Warning: SYCL_DEVICE_FILTER environment variable is set to "
110+
std::cerr << "Warning: SYCL_DEVICE_FILTER environment variable is set to "
111111
<< filter << "." << std::endl;
112-
std::cout
112+
std::cerr
113113
<< "To see the correct device id, please unset SYCL_DEVICE_FILTER."
114114
<< std::endl
115115
<< std::endl;

0 commit comments

Comments
 (0)