Skip to content

Commit 2903875

Browse files
authored
MKL and PSTL headers refactoring (#125)
1 parent c3ec188 commit 2903875

11 files changed

+4
-15
lines changed

dpnp/backend/custom_kernels.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525

2626
#include <cmath>
2727
#include <iostream>
28-
#include <mkl_blas_sycl.hpp>
2928
#include <type_traits>
3029

3130
#include <backend_iface.hpp>
32-
#include "backend_pstl.hpp"
3331
#include "backend_utils.hpp"
3432
#include "queue_sycl.hpp"
3533

dpnp/backend/custom_kernels_elemwise.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#include <cmath>
2727
#include <iostream>
28-
#include <mkl_blas_sycl.hpp>
2928

3029
#include <backend_iface.hpp>
3130
#include "backend_utils.hpp"

dpnp/backend/custom_kernels_manipulation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#include <cmath>
2727
#include <iostream>
28-
#include <mkl_blas_sycl.hpp>
2928
#include <vector>
3029

3130
#include <backend_iface.hpp>

dpnp/backend/custom_kernels_mathematical.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#include <cmath>
2727
#include <iostream>
28-
#include <mkl_blas_sycl.hpp>
2928
#include <vector>
3029

3130
#include <backend_iface.hpp>

dpnp/backend/custom_kernels_reduction.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include <iostream>
2828

2929
#include <backend_iface.hpp>
30-
31-
#include "backend_pstl.hpp"
3230
#include "queue_sycl.hpp"
3331

3432
template <typename _KernelNameSpecialization>

dpnp/backend/custom_kernels_searching.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <iostream>
2727

2828
#include <backend_iface.hpp>
29-
#include "backend_pstl.hpp"
3029
#include "queue_sycl.hpp"
3130

3231
template <typename _DataType, typename _idx_DataType>

dpnp/backend/custom_kernels_sorting.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <iostream>
2727

2828
#include <backend_iface.hpp>
29-
#include "backend_pstl.hpp"
3029
#include "queue_sycl.hpp"
3130

3231
template <typename _DataType, typename _idx_DataType>

dpnp/backend/custom_kernels_statistics.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@
2424
//*****************************************************************************
2525

2626
#include <iostream>
27-
#include <mkl_blas_sycl.hpp>
28-
#include <mkl_stats_sycl.hpp>
2927

3028
#include <backend_iface.hpp>
31-
#include "backend_pstl.hpp"
3229
#include "backend_utils.hpp"
3330
#include "queue_sycl.hpp"
3431

dpnp/backend/mkl_wrap_lapack.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#include <algorithm>
2727
#include <iostream>
28-
#include <mkl_lapack_sycl.hpp>
2928

3029
#include <backend_iface.hpp>
3130
#include "queue_sycl.hpp"

dpnp/backend/mkl_wrap_rng.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include <iostream>
2828
#include <vector>
2929

30-
#include <mkl_sycl.hpp>
31-
3230
#include <backend_iface.hpp>
3331
#include "backend_utils.hpp"
3432
#include "queue_sycl.hpp"

dpnp/backend/queue_sycl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@
2828
#define QUEUE_SYCL_H
2929

3030
#include <CL/sycl.hpp>
31+
#include <mkl_sycl.hpp>
3132

3233
#if !defined(DPNP_LOCAL_QUEUE)
3334
#include <dppl_sycl_queue_manager.h>
3435
#endif
3536

37+
#include "backend_pstl.hpp" // this header must be included after <mkl_sycl.hpp>
38+
39+
3640
#define DPNP_QUEUE backend_sycl::get_queue()
3741

3842
/**

0 commit comments

Comments
 (0)