Skip to content

Commit 430cb31

Browse files
author
Jamie Hall
authored
Test for MKL linkage
1 parent 369cd4d commit 430cb31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test_build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
print("Numpy imported ok")
77
print("Your lucky number is: " + str(np.random.randint(100)))
88

9+
# Numpy must be linked to the MKL. (Occasionally, a third-party package will muck up the installation
10+
# and numpy will be reinstalled with an OpenBLAS backing.)
11+
from numpy.distutils.system_info import get_info
12+
# This will throw an exception if the MKL is not linked correctly.
13+
get_info("blas_mkl")
14+
915
import pandas as pd
1016
print("Pandas imported ok")
1117

0 commit comments

Comments
 (0)