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.
fprintf
1 parent 78672e4 commit e73f1f6Copy full SHA for e73f1f6
sycl/include/sycl/accessor.hpp
@@ -236,7 +236,7 @@ template <typename... Ts>
236
void cannot_be_called_on_host([[maybe_unused]] const char *API,
237
Ts &&.../* ignore */) {
238
#ifndef __SYCL_DEVICE_ONLY__
239
- std::fprintf(stderr, "%s cannot be called on host!\n", API);
+ std::cerr << API << " cannot be called on host!" << std::endl;
240
std::abort();
241
#endif
242
}
0 commit comments