Skip to content

Commit 27c26a5

Browse files
author
Vahid Tavanashad
committed
change to dynamic linking and add interface and threading layers
1 parent 77ef1a5 commit 27c26a5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ cmake_print_variables(Python_NumPy_INCLUDE_DIRS)
2323
set(CYTHON_FLAGS "-t -w \"${CMAKE_SOURCE_DIR}\"")
2424
find_package(Cython REQUIRED)
2525

26-
set(MKL_LINK sdl)
26+
set(MKL_INTERFACE ilp64)
27+
set(MKL_THREADING tbb_thread)
28+
set(MKL_LINK dynamic)
2729
find_package(MKL REQUIRED)
2830

2931
if(WIN32)

mkl_umath/tests/test_basic.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,10 @@ def test_umath(case):
8585
def test_cases_count():
8686
print("Test cases count:", len(test_cases))
8787
assert len(test_cases) > 0, "No test cases found"
88+
89+
def test_large():
90+
n = 2**31
91+
data = np.ones(n)
92+
mkl_res = mu.absolute(data)
93+
assert np.allclose(mkl_res, 1.0)
94+

0 commit comments

Comments
 (0)