Skip to content

Commit

Permalink
Remove MKL warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Wiecki authored and brandonwillard committed Sep 18, 2021
1 parent 0f9f93c commit 99fbef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions aesara/link/c/cmodule.py
Expand Up @@ -2738,9 +2738,8 @@ def default_blas_ldflags():
# numpy and scipy.
try:
import mkl # noqa
except ImportError as e:
if any([m for m in ("conda", "Continuum") if m in sys.version]):
warn_record.append(f"install mkl with `conda install mkl-service`: {e}")
except ImportError:
pass
else:
# This branch is executed if no exception was raised
if sys.platform == "win32":
Expand Down
2 changes: 1 addition & 1 deletion tests/link/c/test_cmodule.py
Expand Up @@ -90,4 +90,4 @@ def test_default_blas_ldflags(sys_mock, try_blas_flag_mock, caplog):
with caplog.at_level(logging.WARNING):
default_blas_ldflags()

assert "install mkl with" in caplog.text
assert caplog.text == ""

0 comments on commit 99fbef6

Please sign in to comment.