Closed fanshi118 closed 3 years ago
I installed
mkl-service
in addition toaesara
. Could I be missing something else?
I doubt it; mkl
and other BLAS/LAPACK-related things don't appear to be involved—at least not directly.
Issue resolved when I installed the master
branch of aesara
in a new virtual environment. There must have been some version issues with my old one.
Ran into the following issue when trying to apply
aesara.tensor
functions to an array locallyPlease provide a minimal, self-contained, and reproducible example.
Please provide the full traceback of any errors.
Click to expand traceback
WARNING (aesara.tensor.blas): Using NumPy C-API based implementation for BLAS functions. ERROR (aesara.graph.opt): Optimization failure due to: constant_folding ERROR (aesara.graph.opt): node: MaxAndArgmax{axis=(0, 1)}(TensorConstant{[[0. 1.] [1. 2.]]}) ERROR (aesara.graph.opt): TRACEBACK: ERROR (aesara.graph.opt): Traceback (most recent call last): File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/graph/opt.py", line 2015, in process_node replacements = lopt.transform(fgraph, node) File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/graph/opt.py", line 1206, in transform return self.fn(*args, **kwargs) File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/tensor/basic_opt.py", line 4355, in constant_folding thunk = node.op.make_thunk(node, storage_map, compute_map, no_recycling=[]) File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/graph/op.py", line 656, in make_thunk return self.make_c_thunk(node, storage_map, compute_map, no_recycling) File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/graph/op.py", line 622, in make_c_thunk outputs = cl.make_thunk( File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/link/c/basic.py", line 1204, in make_thunk cthunk, module, in_storage, out_storage, error_storage = self.__compile__( File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/link/c/basic.py", line 1139, in __compile__ thunk, module = self.cthunk_factory( File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/link/c/basic.py", line 1635, in cthunk_factory module = get_module_cache().module_from_key(key=key, lnk=self) File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/link/c/cmodule.py", line 1198, in module_from_key module = lnk.compile_cmodule(location) File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/link/c/basic.py", line 1544, in compile_cmodule module = c_compiler.compile_str( File "/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/link/c/cmodule.py", line 2553, in compile_str raise CompileError( aesara.link.c.exceptions.CompileError: Compilation failed (return status=1): /Users/sf/miniconda3/envs/aesara/bin/clang++ -dynamiclib -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -fPIC -undefined dynamic_lookup -I/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/numpy/core/include -I/Users/sf/miniconda3/envs/aesara/include/python3.8 -I/Users/sf/miniconda3/envs/aesara/lib/python3.8/site-packages/aesara/link/c/c_code -L/Users/sf/miniconda3/envs/aesara/lib -fvisibility=hidden -o /Users/sf/.aesara/compiledir_macOS-11.0.1-x86_64-i386-64bit-i386-3.8.10-64/tmpwunj4hgp/m4b2ef76bb0f9461399355330a611097ca43c41e28c2d7fc7506e5efb00d6b0e5.so /Users/sf/.aesara/compiledir_macOS-11.0.1-x86_64-i386-64bit-i386-3.8.10-64/tmpwunj4hgp/mod.cpp In file included from /Users/sf/.aesara/compiledir_macOS-11.0.1-x86_64-i386-64bit-i386-3.8.10-64/tmpwunj4hgp/mod.cpp:1: In file included from /Users/sf/miniconda3/envs/aesara/include/python3.8/Python.h:25: /Users/sf/miniconda3/envs/aesara/bin/../include/c++/v1/stdio.h:107:15: fatal error: 'stdio.h' file not found #include_nextPlease provide any additional information below.
I installed
mkl-service
in addition toaesara
. Could I be missing something else?Versions and main components
2.0.10
python -c "import aesara; print(aesara.config)"
)3.8.10
MacOS
pip install git+https://…