From fbd489bf730174b716b3a0169e458787f325f8f0 Mon Sep 17 00:00:00 2001 From: nscipione Date: Mon, 11 Dec 2023 18:01:59 +0000 Subject: [PATCH] Add compile time checks for sycl complex path The most recent nighlty moved the complex header in another path. To keep compatiblity also with older release, this commit adds a compile time check for the path and include the correct one. --- include/blas_meta.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/blas_meta.h b/include/blas_meta.h index ced99f760..eda3b7699 100644 --- a/include/blas_meta.h +++ b/include/blas_meta.h @@ -32,7 +32,11 @@ #ifdef BLAS_ENABLE_COMPLEX #define SYCL_EXT_ONEAPI_COMPLEX #include +#if __has_include() #include +#else +#include +#endif #endif namespace blas {