Skip to content

Commit bcfcc9e

Browse files
authored
Include header for sycl::ext::oneapi::experimental::printf when SYCL support is detected (#431)
1 parent 7c75282 commit bcfcc9e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/experimental/__p0009_bits/macros.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include <cstdio>
2222
#include <cstdlib>
2323
#include <type_traits> // std::is_void
24+
#if defined(MDSPAN_IMPL_HAS_SYCL)
25+
#include <sycl/sycl.hpp> // sycl::ext::oneapi::experimental::printf
26+
#endif
2427
#if defined(MDSPAN_IMPL_HAS_CUDA) || defined(MDSPAN_IMPL_HAS_HIP) || defined(MDSPAN_IMPL_HAS_SYCL)
2528
#include "assert.h"
2629
#endif

0 commit comments

Comments
 (0)