Include header for sycl::ext::oneapi::experimental::printf when SYCL support is detected#431
Conversation
…support is detected
|
https://github.com/kokkos/mdspan/pull would have detected it (currently also includes this fix). |
Are you referring to #235 ? |
Yes, that one also includes the fix now. I'll leave it up to those with merge authority if we want to merge the fix and improving the CI separately. |
|
Why is it not enough that this include is included in the one file which defines a macro using the SYCL printf? |
That is this file. |
|
I think sycl::ext::oneapi::experimental::printf has been removed from the more recent intel compiler versions. I have to remove it from the macros or else get a compilation error with the compiler: Intel(R) oneAPI DPC++/C++ Compiler 2025.3.0 (2025.3.0.20251010) I am wondering if it is possible to just remove sycl::ext::oneapi::experimental::printf entirely? I do this and it fixes my problem. Example: it compiles and runs fine if the -fsycl flag is removed. |
|
It seems the definition is still present in |
You are correct, I made a mistake when searching for the printf function in the dir. including the builtins header within the macros.hpp fixes the problem. |
|
Apologies, I have made another mistake. This branch fixes the problem. My comments can all be ignored. Sorry for the confusion! |
Detecting SYCL support in
mdspan/include/experimental/__p0009_bits/config.hpp
Lines 96 to 100 in 3c1aa52
sycl/sycl.hppbeing included but we need this header forsycl::ext::oneapi::experimental::printf.