Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Add compile time checks for sycl complex path
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
s-Nick committed Dec 11, 2023
1 parent 9e430ab commit fbd489b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/blas_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
#ifdef BLAS_ENABLE_COMPLEX
#define SYCL_EXT_ONEAPI_COMPLEX
#include <complex>
#if __has_include(<ext/oneapi/experimental/complex/complex.hpp>)
#include <ext/oneapi/experimental/complex/complex.hpp>
#else
#include <ext/oneapi/experimental/sycl_complex.hpp>
#endif
#endif

namespace blas {
Expand Down

0 comments on commit fbd489b

Please sign in to comment.