Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NumPy BLAS info approach for version 1.26 #1512

Merged
merged 5 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ jobs:
path: coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3
with:
directory: ./coverage/
fail_ci_if_error: true
File renamed without changes.
7 changes: 6 additions & 1 deletion aesara/link/c/cmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -2722,7 +2722,12 @@ def default_blas_ldflags():
"""
warn_record = []
try:
blas_info = np.__config__.get_info("blas_opt")
try:
blas_info = np.__config__.get_info("blas_opt")
except AttributeError:
import numpy.distutils.system_info

blas_info = numpy.distutils.system_info.get_info("blas_opt")

# If we are in a EPD installation, mkl is available
if "EPD" in sys.version:
Expand Down
2 changes: 1 addition & 1 deletion aesara/scalar/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ class Mul(ScalarOp):
commutative = True
associative = True
nfunc_spec = ("multiply", 2, 1)
nfunc_variadic = "product"
nfunc_variadic = "prod"

def impl(self, *inputs):
return np.prod(inputs)
Expand Down
2 changes: 1 addition & 1 deletion doc/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- numpy
- scipy
- six
- sphinx>=3
- sphinx>=3,<7
- sphinx-book-theme
- sphinx-design
- sphinx_rtd_theme
Expand Down
Loading