Skip to content

Commit ed735ee

Browse files
prep for dpctl/include reorg (IntelPython/dpctl#685) (#1052)
Use __has_include to minimize disruption that the said reorg may cause Co-authored-by: Alexander-Makaryev <alexander.makaryev@gmail.com>
1 parent a963646 commit ed735ee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dpnp/backend/src/queue_sycl.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@
4141
#include <ctime>
4242

4343
#if !defined(DPNP_LOCAL_QUEUE)
44-
#include <dpctl_sycl_queue_manager.h>
44+
# if defined __has_include
45+
# if __has_include(<dpctl_sycl_interface.h>)
46+
# include <dpctl_sycl_interface.h>
47+
# else
48+
# include <dpctl_sycl_queue_manager.h>
49+
# endif
50+
# endif
4551
#endif
4652

4753
#include "dpnp_pstl.hpp" // this header must be included after <mkl.hpp>

0 commit comments

Comments
 (0)