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 00bc553 commit cf0a410Copy full SHA for cf0a410
sycl/source/detail/adapter.hpp
@@ -71,17 +71,7 @@ class Adapter {
71
int32_t adapter_error = 0;
72
ur_result = call_nocheck<UrApiKind::urAdapterGetLastError>(
73
MAdapter, &message, &adapter_error);
74
-
75
- // If the warning level is greater then 2 emit the message
76
- if (message != nullptr &&
77
- detail::SYCLConfig<detail::SYCL_RT_WARNING_LEVEL>::get() >= 2) {
78
- std::clog << message << std::endl;
79
- }
80
81
- // If it is a warning do not throw code
82
- if (ur_result == UR_RESULT_SUCCESS) {
83
- return;
84
+ std::cerr << message << " (error code " << adapter_error << ")\n";
85
}
86
if (ur_result != UR_RESULT_SUCCESS) {
87
throw sycl::detail::set_ur_error(
0 commit comments