Skip to content

Commit 583fef8

Browse files
Fix compilation when using MKL. (#358)
"USE_MKL" needs to be defined for "mkl_alternate.hpp" to pick the right header.
1 parent 2eb5d28 commit 583fef8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ def _argparse(pattern, argv, is_flag=True, is_list=False):
184184
assert BLAS in BLAS_LIST, f"Blas option {BLAS} not in valid options {BLAS_LIST}"
185185
if BLAS == "mkl":
186186
libraries.append("mkl_rt")
187+
CC_FLAGS.append("-DUSE_MKL")
188+
NVCC_FLAGS.append("-DUSE_MKL")
187189
else:
188190
libraries.append(BLAS)
189191
if not (BLAS_INCLUDE_DIRS is False):

0 commit comments

Comments
 (0)