Skip to content

Commit f3d981b

Browse files
committed
Add extra changes to be bale to compile
1 parent 0bda0f6 commit f3d981b

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ endif()
1616
# Download dependencies
1717
include(FetchContent)
1818

19+
if (ENABLE_ONEMKL_IESPBLAS)
20+
find_package(MKL REQUIRED)
21+
target_link_libraries(spblas INTERFACE MKL::MKL) # C APIs
22+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSPBLAS_ENABLE_ONEMKL_IESPBLAS")
23+
endif()
24+
25+
1926
if (ENABLE_ONEMKL_SYCL)
2027
find_package(MKL REQUIRED)
2128
target_link_libraries(spblas INTERFACE MKL::MKL_SYCL) # SYCL APIs

include/spblas/backend/backend.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
#include <spblas/backend/generate.hpp>
77
#include <spblas/backend/view_customizations.hpp>
88

9+
#ifdef SPBLAS_ENABLE_ONEMKL_IESPBLAS
10+
#include <spblas/vendor/onemkl_iespblas/onemkl_iespblas.hpp>
11+
#endif
12+
913
#ifdef SPBLAS_ENABLE_ONEMKL_SYCL
1014
#include <spblas/vendor/onemkl_sycl/onemkl_sycl.hpp>
1115
#endif

include/spblas/vendor/onemkl_iespblas/spgemm_impl.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
#include <algorithm>
55
#include "mkl.h"
66

7-
#include <spblas/backend/log.hpp>
8-
97
#include "mkl_wrappers.hpp"
108
#include <spblas/detail/operation_info_t.hpp>
119
#include <spblas/detail/ranges.hpp>
1210
#include <spblas/detail/view_inspectors.hpp>
11+
#include <spblas/detail/log.hpp>
1312

1413
//
1514
// Defines the following APIs for SpGEMM:

include/spblas/vendor/onemkl_iespblas/spmm_impl.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
#include "mkl.h"
44

5-
#include <spblas/backend/log.hpp>
6-
75
#include "mkl_wrappers.hpp"
86
#include <spblas/detail/operation_info_t.hpp>
97
#include <spblas/detail/ranges.hpp>
108
#include <spblas/detail/view_inspectors.hpp>
9+
#include <spblas/detail/log.hpp>
1110

1211
//
1312
// Defines the following APIs for SpMM:

include/spblas/vendor/onemkl_iespblas/spmv_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
#include "mkl.h"
44

5-
#include <spblas/backend/log.hpp>
65

76
#include "mkl_wrappers.hpp"
87
#include <spblas/detail/operation_info_t.hpp>
98
#include <spblas/detail/ranges.hpp>
109
#include <spblas/detail/view_inspectors.hpp>
10+
#include <spblas/detail/log.hpp>
1111

1212
//
1313
// Defines the following APIs for SpMV:

0 commit comments

Comments
 (0)