thanks, it seems that with some trial and error I am able to set BLAS to accelerate, but apart segmentation errors with clang++ (which is common to other threads) after running this (pointing to my pyenv with conda)
export LDFLAGS='gcc__cxxflags=-L/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib -march=native, optimizer=fast_compile' ; python $(python -c "import pathlib, pytensor; print(pathlib.Path(pytensor.__file__).parent / 'misc/check_blas.py')")
I am getting this error (including diagnostic message)
Some PyTensor flags:
blas__ldflags= -framework Accelerate
compiledir= /Users/daniel/.pytensor/compiledir_macOS-15.0-arm64-arm-64bit-arm-3.12.6-64
floatX= float64
device= cpu
Some OS information:
sys.platform= darwin
sys.version= 3.12.6 | packaged by conda-forge | (main, Sep 22 2024, 14:07:06) [Clang 17.0.6 ]
sys.prefix= /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12
Some environment variables:
MKL_NUM_THREADS= None
OMP_NUM_THREADS= None
GOTO_NUM_THREADS= None
Numpy config: (used when the PyTensor flag "blas__ldflags" is empty)
Build Dependencies:
blas:
detection method: pkgconfig
found: true
include directory: /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include
lib directory: /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib
name: blas
openblas configuration: unknown
pc file directory: /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/pkgconfig
version: 3.9.0
lapack:
detection method: internal
found: true
include directory: unknown
lib directory: unknown
name: dep4569863840
openblas configuration: unknown
pc file directory: unknown
version: 1.26.4
Compilers:
c:
args: -ftree-vectorize, -fPIC, -fstack-protector-strong, -O2, -pipe, -isystem,
/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/numpy_1707225421156/work=/usr/local/src/conda/numpy-1.26.4,
-fdebug-prefix-map=/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12=/usr/local/src/conda-prefix,
-D_FORTIFY_SOURCE=2, -isystem, /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-mmacosx-version-min=11.0
commands: arm64-apple-darwin20.0.0-clang
linker: ld64
linker args: -Wl,-headerpad_max_install_names, -Wl,-dead_strip_dylibs, -Wl,-rpath,/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib,
-L/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib,
-ftree-vectorize, -fPIC, -fstack-protector-strong, -O2, -pipe, -isystem, /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/numpy_1707225421156/work=/usr/local/src/conda/numpy-1.26.4,
-fdebug-prefix-map=/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12=/usr/local/src/conda-prefix,
-D_FORTIFY_SOURCE=2, -isystem, /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-mmacosx-version-min=11.0
name: clang
version: 16.0.6
c++:
args: -ftree-vectorize, -fPIC, -fstack-protector-strong, -O2, -pipe, -stdlib=libc++,
-fvisibility-inlines-hidden, -fmessage-length=0, -isystem, /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/numpy_1707225421156/work=/usr/local/src/conda/numpy-1.26.4,
-fdebug-prefix-map=/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12=/usr/local/src/conda-prefix,
-D_FORTIFY_SOURCE=2, -isystem, /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-mmacosx-version-min=11.0
commands: arm64-apple-darwin20.0.0-clang++
linker: ld64
linker args: -Wl,-headerpad_max_install_names, -Wl,-dead_strip_dylibs, -Wl,-rpath,/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib,
-L/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib,
-ftree-vectorize, -fPIC, -fstack-protector-strong, -O2, -pipe, -stdlib=libc++,
-fvisibility-inlines-hidden, -fmessage-length=0, -isystem, /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/numpy_1707225421156/work=/usr/local/src/conda/numpy-1.26.4,
-fdebug-prefix-map=/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12=/usr/local/src/conda-prefix,
-D_FORTIFY_SOURCE=2, -isystem, /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include,
-mmacosx-version-min=11.0
name: clang
version: 16.0.6
cython:
commands: cython
linker: cython
name: cython
version: 3.0.8
Machine Information:
build:
cpu: aarch64
endian: little
family: aarch64
system: darwin
cross-compiled: true
host:
cpu: arm64
endian: little
family: aarch64
system: darwin
Python Information:
path: /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/bin/python
version: '3.12'
SIMD Extensions:
baseline:
- NEON
- NEON_FP16
- NEON_VFPV4
- ASIMD
found:
- ASIMDHP
not found:
- ASIMDFHM
Numpy dot module: numpy
Numpy location: /Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/numpy/__init__.py
Numpy version: 1.26.4
You can find the C code in this temporary file: /var/folders/xq/sl7xjp_95qx7wfngy6s6vvg00000gn/T/pytensor_compilation_error_z14as_k1
ERROR (pytensor.graph.rewriting.basic): Rewrite failure due to: constant_folding
ERROR (pytensor.graph.rewriting.basic): node: ExpandDims{axes=[0, 1]}(0.8)
ERROR (pytensor.graph.rewriting.basic): TRACEBACK:
ERROR (pytensor.graph.rewriting.basic): Traceback (most recent call last):
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/graph/rewriting/basic.py", line 1909, in process_node
replacements = node_rewriter.transform(fgraph, node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/graph/rewriting/basic.py", line 1081, in transform
return self.fn(fgraph, node)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/rewriting/basic.py", line 1122, in constant_folding
thunk = node.op.make_thunk(node, storage_map, compute_map, no_recycling=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 119, in make_thunk
return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 84, in make_c_thunk
outputs = cl.make_thunk(
^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1182, in make_thunk
cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1103, in __compile__
thunk, module = self.cthunk_factory(
^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1627, in cthunk_factory
module = cache.module_from_key(key=key, lnk=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/cmodule.py", line 1255, in module_from_key
module = lnk.compile_cmodule(location)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1528, in compile_cmodule
module = c_compiler.compile_str(
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/cmodule.py", line 2654, in compile_str
raise CompileError(
pytensor.link.c.exceptions.CompileError: Compilation failed (return status=1):
/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/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 -fPIC -undefined dynamic_lookup -I/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/numpy/core/include -I/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include/python3.12 -I/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/c_code -L/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib -fvisibility=hidden -o /Users/daniel/.pytensor/compiledir_macOS-15.0-arm64-arm-64bit-arm-3.12.6-64/tmp1um0ll_l/mb782a9925f26f74c46a75d98e1484e89ff6c5c482e4b63d738d2bb93e667f8f6.so /Users/daniel/.pytensor/compiledir_macOS-15.0-arm64-arm-64bit-arm-3.12.6-64/tmp1um0ll_l/mod.cpp
clang++: error: unable to execute command: Segmentation fault: 11
clang++: error: linker command failed due to signal (use -v to see invocation)
You can find the C code in this temporary file: /var/folders/xq/sl7xjp_95qx7wfngy6s6vvg00000gn/T/pytensor_compilation_error_51fao5ga
ERROR (pytensor.graph.rewriting.basic): Rewrite failure due to: constant_folding
ERROR (pytensor.graph.rewriting.basic): node: ExpandDims{axes=[0, 1]}(0.4)
ERROR (pytensor.graph.rewriting.basic): TRACEBACK:
ERROR (pytensor.graph.rewriting.basic): Traceback (most recent call last):
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/graph/rewriting/basic.py", line 1909, in process_node
replacements = node_rewriter.transform(fgraph, node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/graph/rewriting/basic.py", line 1081, in transform
return self.fn(fgraph, node)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/rewriting/basic.py", line 1122, in constant_folding
thunk = node.op.make_thunk(node, storage_map, compute_map, no_recycling=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 119, in make_thunk
return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 84, in make_c_thunk
outputs = cl.make_thunk(
^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1182, in make_thunk
cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1103, in __compile__
thunk, module = self.cthunk_factory(
^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1627, in cthunk_factory
module = cache.module_from_key(key=key, lnk=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/cmodule.py", line 1255, in module_from_key
module = lnk.compile_cmodule(location)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1528, in compile_cmodule
module = c_compiler.compile_str(
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/cmodule.py", line 2654, in compile_str
raise CompileError(
pytensor.link.c.exceptions.CompileError: Compilation failed (return status=1):
/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/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 -fPIC -undefined dynamic_lookup -I/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/numpy/core/include -I/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/include/python3.12 -I/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/c_code -L/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib -fvisibility=hidden -o /Users/daniel/.pytensor/compiledir_macOS-15.0-arm64-arm-64bit-arm-3.12.6-64/tmp23hcoizr/mb782a9925f26f74c46a75d98e1484e89ff6c5c482e4b63d738d2bb93e667f8f6.so /Users/daniel/.pytensor/compiledir_macOS-15.0-arm64-arm-64bit-arm-3.12.6-64/tmp23hcoizr/mod.cpp
clang++: error: unable to execute command: Segmentation fault: 11
clang++: error: linker command failed due to signal (use -v to see invocation)
Traceback (most recent call last):
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/blas.py", line 428, in _ldflags
assert t0 == "-"
^^^^^^^^^
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/vm.py", line 1227, in make_all
node.op.make_thunk(node, storage_map, compute_map, [], impl=impl)
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 119, in make_thunk
return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 84, in make_c_thunk
outputs = cl.make_thunk(
^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1182, in make_thunk
cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1103, in __compile__
thunk, module = self.cthunk_factory(
^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1614, in cthunk_factory
key = self.cmodule_key()
^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1266, in cmodule_key
compile_args=self.compile_args(),
^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 947, in compile_args
ret += x.c_compile_args(c_compiler=c_compiler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/blas.py", line 496, in c_compile_args
return ldflags(libs=False, flags=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/blas.py", line 359, in ldflags
return _ldflags(
^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/blas.py", line 430, in _ldflags
raise ValueError(f'invalid token "{t}" in ldflags_str: "{ldflags_str}"')
ValueError: invalid token "Accelerate" in ldflags_str: "-framework Accelerate"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/misc/check_blas.py", line 274, in <module>
t, impl = execute(
^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/misc/check_blas.py", line 57, in execute
f = pytensor.function([], updates=[(c, 0.4 * c + 0.8 * dot(a, b))])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/compile/function/__init__.py", line 318, in function
fn = pfunc(
^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/compile/function/pfunc.py", line 465, in pfunc
return orig_function(
^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/compile/function/types.py", line 1762, in orig_function
fn = m.create(defaults)
^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/compile/function/types.py", line 1654, in create
_fn, _i, _o = self.linker.make_thunk(
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/basic.py", line 245, in make_thunk
return self.make_all(
^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/vm.py", line 1236, in make_all
raise_with_op(fgraph, node)
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/utils.py", line 524, in raise_with_op
raise exc_value.with_traceback(exc_trace)
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/vm.py", line 1227, in make_all
node.op.make_thunk(node, storage_map, compute_map, [], impl=impl)
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 119, in make_thunk
return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/op.py", line 84, in make_c_thunk
outputs = cl.make_thunk(
^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1182, in make_thunk
cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1103, in __compile__
thunk, module = self.cthunk_factory(
^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1614, in cthunk_factory
key = self.cmodule_key()
^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 1266, in cmodule_key
compile_args=self.compile_args(),
^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/link/c/basic.py", line 947, in compile_args
ret += x.c_compile_args(c_compiler=c_compiler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/blas.py", line 496, in c_compile_args
return ldflags(libs=False, flags=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/blas.py", line 359, in ldflags
return _ldflags(
^^^^^^^^^
File "/Users/daniel/.pyenv/versions/miniforge3-latest/envs/voxel-bayes-3.12/lib/python3.12/site-packages/pytensor/tensor/blas.py", line 430, in _ldflags
raise ValueError(f'invalid token "{t}" in ldflags_str: "{ldflags_str}"')
ValueError: invalid token "Accelerate" in ldflags_str: "-framework Accelerate"
Apply node that caused the error: Gemm{inplace}(<Matrix(float64, shape=(?, ?))>, 0.8, <Matrix(float64, shape=(?, ?))>, <Matrix(float64, shape=(?, ?))>, 0.4)
Toposort index: 0
Inputs types: [TensorType(float64, shape=(None, None)), TensorType(float64, shape=()), TensorType(float64, shape=(None, None)), TensorType(float64, shape=(None, None)), TensorType(float64, shape=())]
HINT: Use a linker other than the C linker to print the inputs' shapes and strides.
HINT: Re-running with most PyTensor optimizations disabled could provide a back-trace showing when this node was created. This can be done by setting the PyTensor flag 'optimizer=fast_compile'. If that does not work, PyTensor optimizations can be disabled with 'optimizer=None'.
HINT: Use the PyTensor flag `exception_verbosity=high` for a debug print-out and storage map footprint of this Apply node.
I deleted repeating segmentation fault