Skip to content

Commit 0c57e49

Browse files
authored
[BLAS][rocblas] PI header includes to applies for only DPC++ compiler (#685)
1 parent 4a51281 commit 0c57e49

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/blas/backends/rocblas/rocblas_scope_handle.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
**************************************************************************/
2020
#ifndef _ROCBLAS_SCOPED_HANDLE_HPP_
2121
#define _ROCBLAS_SCOPED_HANDLE_HPP_
22+
#if __has_include(<sycl/sycl.hpp>)
23+
#include <sycl/sycl.hpp>
24+
#else
2225
#include <CL/sycl.hpp>
26+
#endif
2327
#include <memory>
2428
#include <thread>
2529
#include <atomic>

src/blas/backends/rocblas/rocblas_task.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@
3434
#include "rocblas_scope_handle_hipsycl.hpp"
3535
#endif
3636

37-
// After Plugin Interface removal in DPC++ ur.hpp is the new include
38-
#if __has_include(<sycl/detail/ur.hpp>)
39-
#include <sycl/detail/ur.hpp>
40-
#ifndef ONEMATH_PI_INTERFACE_REMOVED
41-
#define ONEMATH_PI_INTERFACE_REMOVED
42-
#endif
43-
#elif __has_include(<sycl/detail/pi.hpp>)
44-
#include <sycl/detail/pi.hpp>
45-
#else
46-
#include <CL/sycl/detail/pi.hpp>
47-
#endif
48-
4937
namespace oneapi {
5038
namespace math {
5139
namespace blas {

0 commit comments

Comments
 (0)