Skip to content

Commit

Permalink
Fix compilation when using MKL. (#358)
Browse files Browse the repository at this point in the history
"USE_MKL" needs to be defined for "mkl_alternate.hpp" to pick the right header.
  • Loading branch information
RemiLacroix-IDRIS committed May 26, 2021
1 parent 2eb5d28 commit 583fef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ def _argparse(pattern, argv, is_flag=True, is_list=False):
assert BLAS in BLAS_LIST, f"Blas option {BLAS} not in valid options {BLAS_LIST}"
if BLAS == "mkl":
libraries.append("mkl_rt")
CC_FLAGS.append("-DUSE_MKL")
NVCC_FLAGS.append("-DUSE_MKL")
else:
libraries.append(BLAS)
if not (BLAS_INCLUDE_DIRS is False):
Expand Down

0 comments on commit 583fef8

Please sign in to comment.