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

Some tests fail on 2.9.3 (KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>") #1529

Open
GaetanLepage opened this issue Apr 17, 2024 · 3 comments

Comments

@GaetanLepage
Copy link

GaetanLepage commented Apr 17, 2024

Description of your problem or feature request

Context: I am trying to fix aesara on the nixpkgs repository.
PR: NixOS/nixpkgs#304881

When running the tests for the latest version (2.9.3) with numba 0.59.1, I get the following errors:

==================================== ERRORS ====================================
_______________ ERROR collecting tests/link/numba/test_basic.py ________________
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:198: in <module>
    @generated_jit
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/decorators.py:225: in wrapper
    disp = dispatcher(py_func=func, locals=locals,
E   TypeError: Dispatcher.__init__() got an unexpected keyword argument 'impl_kind'
______________ ERROR collecting tests/link/numba/test_elemwise.py ______________
tests/link/numba/test_elemwise.py:19: in <module>
    from tests.link.numba.test_basic import (
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/nix/store/m34m9sb8z84ldimp3wzwwrz08l7w66ly-python3.11-pytest-8.0.2/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
_____________ ERROR collecting tests/link/numba/test_extra_ops.py ______________
tests/link/numba/test_extra_ops.py:12: in <module>
    from tests.link.numba.test_basic import compare_numba_and_py, set_test_value
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/nix/store/m34m9sb8z84ldimp3wzwwrz08l7w66ly-python3.11-pytest-8.0.2/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
______________ ERROR collecting tests/link/numba/test_nlinalg.py _______________
tests/link/numba/test_nlinalg.py:11: in <module>
    from tests.link.numba.test_basic import compare_numba_and_py, set_test_value
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/nix/store/m34m9sb8z84ldimp3wzwwrz08l7w66ly-python3.11-pytest-8.0.2/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
_______________ ERROR collecting tests/link/numba/test_random.py _______________
tests/link/numba/test_random.py:14: in <module>
    from tests.link.numba.test_basic import (
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/nix/store/m34m9sb8z84ldimp3wzwwrz08l7w66ly-python3.11-pytest-8.0.2/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
_______________ ERROR collecting tests/link/numba/test_scalar.py _______________
tests/link/numba/test_scalar.py:13: in <module>
    from tests.link.numba.test_basic import compare_numba_and_py, set_test_value
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/nix/store/m34m9sb8z84ldimp3wzwwrz08l7w66ly-python3.11-pytest-8.0.2/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
________________ ERROR collecting tests/link/numba/test_scan.py ________________
tests/link/numba/test_scan.py:13: in <module>
    from tests.link.numba.test_basic import compare_numba_and_py
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/nix/store/m34m9sb8z84ldimp3wzwwrz08l7w66ly-python3.11-pytest-8.0.2/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
_______________ ERROR collecting tests/link/numba/test_sparse.py _______________
tests/link/numba/test_sparse.py:7: in <module>
    import aesara.link.numba.dispatch.sparse  # noqa: F401
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
____________ ERROR collecting tests/link/numba/test_tensor_basic.py ____________
tests/link/numba/test_tensor_basic.py:12: in <module>
    from tests.link.numba.test_basic import (
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/nix/store/m34m9sb8z84ldimp3wzwwrz08l7w66ly-python3.11-pytest-8.0.2/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/link/numba/test_basic.py:27: in <module>
    from aesara.link.numba.dispatch import basic as numba_basic
aesara/link/numba/dispatch/__init__.py:2: in <module>
    from aesara.link.numba.dispatch.basic import (
aesara/link/numba/dispatch/basic.py:195: in <module>
    enable_slice_boxing()
aesara/link/numba/dispatch/basic.py:170: in enable_slice_boxing
    @box(types.SliceType)
/nix/store/msf4a0wv8ivl6rlgnimvg34hwp0f411a-python3.11-numba-0.59.1/lib/python3.11/site-packages/numba/core/pythonapi.py:33: in decorator
    raise KeyError("duplicate registration for %s" % (typeclass,))
E   KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
=============================== warnings summary ===============================
aesara/link/c/cmodule.py:2728
  /build/source/aesara/link/c/cmodule.py:2728: DeprecationWarning: 
  
    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html 
  
  
    import numpy.distutils.system_info

../../nix/store/4718wmk03wr3554kmf09vy80vkdjvq56-python3.11-setuptools-69.1.1/lib/python3.11/site-packages/setuptools/_distutils/msvccompiler.py:66
  /nix/store/4718wmk03wr3554kmf09vy80vkdjvq56-python3.11-setuptools-69.1.1/lib/python3.11/site-packages/setuptools/_distutils/msvccompiler.py:66: DeprecationWarning: msvccompiler is deprecated and slated to be removed in the future. Please discontinue use or file an issue with pypa/distutils describing your use case.
    warnings.warn(

../../nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159
  /nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159: UserWarning: 
      Optimized (vendor) Blas libraries are not found.
      Falls back to netlib Blas library which has worse performance.
      A better performance should be easily gained by switching
      Blas library.
    if self._calc_info(blas):

../../nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159
  /nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159: UserWarning: 
      Blas (http://www.netlib.org/blas/) libraries not found.
      Directories to search for the libraries can be specified in the
      numpy/distutils/site.cfg file (section [blas]) or by setting
      the BLAS environment variable.
    if self._calc_info(blas):

../../nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159
  /nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159: UserWarning: 
      Blas (http://www.netlib.org/blas/) sources not found.
      Directories to search for the sources can be specified in the
      numpy/distutils/site.cfg file (section [blas_src]) or by setting
      the BLAS_SRC environment variable.
    if self._calc_info(blas):

aesara/graph/utils.py:178
  /build/source/aesara/graph/utils.py:178: PytestCollectionWarning: cannot collect test class 'TestValueError' because it has a __init__ constructor (from: tests/graph/test_op.py)
    class TestValueError(Exception):

aesara/tensor/elemwise.py:1738
  /build/source/aesara/tensor/elemwise.py:1738: DeprecationWarning: `sqr` is deprecated; use `square` instead.
    scalar_op = getattr(scalar, symbolname[: -len("_inplace")])

tests/misc/test_pkl_utils.py:9
  /build/source/tests/misc/test_pkl_utils.py:9: DeprecationWarning: The module `aesara.sandbox.rng_mrg` is deprecated. Use the module `aesara.tensor.random` for random variables instead.
    from aesara.sandbox.rng_mrg import MRG_RandomStream

tests/sparse/test_var.py:5
  /build/source/tests/sparse/test_var.py:5: DeprecationWarning: Please import `csr_matrix` from the `scipy.sparse` namespace; the `scipy.sparse.csr` namespace is deprecated and will be removed in SciPy 2.0.0.
    from scipy.sparse.csr import csr_matrix

tests/test_rop.py:29
  /build/source/tests/test_rop.py:29: DeprecationWarning: The module `aesara.tensor.signal` is deprecated and will be removed from Aesara in version 2.8.5.
    from aesara.tensor.signal.pool import Pool

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/link/numba/test_basic.py - TypeError: Dispatcher.__init__() got an unexpected keyword argument 'impl_k...
ERROR tests/link/numba/test_elemwise.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
ERROR tests/link/numba/test_extra_ops.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
ERROR tests/link/numba/test_nlinalg.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
ERROR tests/link/numba/test_random.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
ERROR tests/link/numba/test_scalar.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
ERROR tests/link/numba/test_scan.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
ERROR tests/link/numba/test_sparse.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
ERROR tests/link/numba/test_tensor_basic.py - KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceTy...
!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!
================== 3 skipped, 10 warnings, 9 errors in 4.48s ===================

Do you think that this could be due to the use of a wrong version of one of the dependencies ?

Versions and main components

  • Aesara version: 2.9.3
  • Python version: 3.11
  • Operating system: NixOS
  • How did you install Aesara: (conda/pip) "pip"
Aesara config:
/nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159: UserWarning: 
    Optimized (vendor) Blas libraries are not found.
    Falls back to netlib Blas library which has worse performance.
    A better performance should be easily gained by switching
    Blas library.
  if self._calc_info(blas):
/nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159: UserWarning: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  if self._calc_info(blas):
/nix/store/x1rqfn240xn6m6p6077gxfqxdxxj1cmc-python3.11-numpy-1.26.4/lib/python3.11/site-packages/numpy/distutils/system_info.py:2159: UserWarning: 
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  if self._calc_info(blas):
WARNING (aesara.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
floatX ({'float16', 'float32', 'float64'}) 
    Doc:  Default floating-point precision for python casts.

Note: float16 support is experimental, use at your own risk.
    Value:  float64

warn_float64 ({'pdb', 'ignore', 'warn', 'raise'}) 
    Doc:  Do an action when a tensor variable with float64 dtype is created.
    Value:  ignore

pickle_test_value (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73b44650>>) 
    Doc:  Dump test values while pickling model. If True, test values will be dumped with model.
    Value:  True

cast_policy ({'numpy+floatX', 'custom'}) 
    Doc:  Rules for implicit type casting
    Value:  custom

deterministic ({'more', 'default'}) 
    Doc:  If `more`, sometimes we will select some implementation that are more deterministic, but slower.  Also see the dnn.conv.algo* flags to cover more cases.
    Value:  default

device (cpu)
    Doc:  Default device for computations. only cpu is supported for now
    Value:  cpu

force_device (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73e03850>>) 
    Doc:  Raise an error if we can't use the specified device
    Value:  False

conv__assert_shape (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7ffff73a6890>>) 
    Doc:  If True, AbstractConv* ops will verify that user-provided shapes match the runtime shapes (debugging option, may slow down compilation)
    Value:  False

print_global_stats (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff749e8d50>>) 
    Doc:  Print some global statistics (time spent) at the end
    Value:  False

assert_no_cpu_op ({'pdb', 'ignore', 'warn', 'raise'}) 
    Doc:  Raise an error/warning if there is a CPU op in the computational graph.
    Value:  ignore

unpickle_function (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff7397c190>>) 
    Doc:  Replace unpickled Aesara functions with None. This is useful to unpickle old graphs that pickled them when it shouldn't
    Value:  True

<aesara.configparser.ConfigParam object at 0x7fff749ea250>
    Doc:  Default compilation mode
    Value:  Mode

cxx (<class 'str'>) 
    Doc:  The C++ compiler to use. Currently only g++ is supported, but supporting additional compilers should not be too difficult. If it is empty, no C++ code is compiled.
    Value:  /nix/store/ac1hb5dc2z4biwgy8mjrhlifffkkrvdq-gcc-wrapper-13.2.0/bin/g++

linker ({'c|py', 'c|py_nogc', 'cvm_nogc', 'c', 'vm', 'cvm', 'py', 'vm_nogc'}) 
    Doc:  Default linker used if the aesara flags mode is Mode
    Value:  cvm

allow_gc (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73960210>>) 
    Doc:  Do we default to delete intermediate results during Aesara function calls? Doing so lowers the memory requirement, but asks that we reallocate memory at the next function call. This is implemented for the default linker, but may not work for all linkers.
    Value:  True

optimizer ({'o3', 'fast_run', 'fast_compile', 'unsafe', 'o4', 'o2', 'merge', 'None', 'o1'}) 
    Doc:  Default optimizer. If not None, will use this optimizer with the Mode
    Value:  o4

optimizer_verbose (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff74a57fd0>>) 
    Doc:  If True, we print all optimization being applied
    Value:  False

on_opt_error ({'raise', 'warn', 'ignore', 'pdb'}) 
    Doc:  What to do when an optimization crashes: warn and skip it, raise the exception, or fall into the pdb debugger.
    Value:  warn

nocleanup (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff74b6a310>>) 
    Doc:  Suppress the deletion of code files that did not compile cleanly
    Value:  False

on_unused_input ({'raise', 'warn', 'ignore'}) 
    Doc:  What to do if a variable in the 'inputs' list of  aesara.function() is not used in the graph.
    Value:  raise

gcc__cxxflags (<class 'str'>) 
    Doc:  Extra compiler flags for gcc
    Value:  

cmodule__warn_no_version (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73960d50>>) 
    Doc:  If True, will print a warning when compiling one or more Op with C code that can't be cached because there is no c_code_cache_version() function associated to at least one of those Ops.
    Value:  False

cmodule__remove_gxx_opt (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73960d90>>) 
    Doc:  If True, will remove the -O* parameter passed to g++.This is useful to debug in gdb modules compiled by Aesara.The parameter -g is passed by default to g++
    Value:  False

cmodule__compilation_warning (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73960f10>>) 
    Doc:  If True, will print compilation warnings.
    Value:  False

cmodule__preload_cache (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73961090>>) 
    Doc:  If set to True, will preload the C module cache at import time
    Value:  False

cmodule__age_thresh_use (<class 'int'>) 
    Doc:  In seconds. The time after which Aesara won't reuse a compile c module.
    Value:  2073600

cmodule__debug (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff74505890>>) 
    Doc:  If True, define a DEBUG macro (if not exists) for any compiled C code.
    Value:  False

compile__wait (<class 'int'>) 
    Doc:  Time to wait before retrying to acquire the compile lock.
    Value:  5

compile__timeout (<class 'int'>) 
    Doc:  In seconds, time that a process will wait before deciding to
    override an existing lock. An override only happens when the existing
    lock is held by the same owner *and* has not been 'refreshed' by this
    owner for more than this period. Refreshes are done every half timeout
    period for running processes.
    Value:  120

ctc__root (<class 'str'>) 
    Doc:  Directory which contains the root of Baidu CTC library. It is assumed         that the compiled library is either inside the build, lib or lib64         subdirectory, and the header inside the include directory.
    Value:  

tensor__cmp_sloppy (<class 'int'>) 
    Doc:  Relax aesara.tensor.math._allclose (0) not at all, (1) a bit, (2) more
    Value:  0

tensor__local_elemwise_fusion (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73961590>>) 
    Doc:  Enable or not in fast_run mode(fast_run optimization) the elemwise fusion optimization
    Value:  True

lib__amblibm (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff739615d0>>) 
    Doc:  Use amd's amdlibm numerical library
    Value:  False

tensor__insert_inplace_optimizer_validate_nb (<class 'int'>) 
    Doc:  -1: auto, if graph have less then 500 nodes 1, else 10
    Value:  -1

traceback__limit (<class 'int'>) 
    Doc:  The number of stack to trace. -1 mean all.
    Value:  8

traceback__compile_limit (<class 'int'>) 
    Doc:  The number of stack to trace to keep during compilation. -1 mean all. If greater then 0, will also make us save Aesara internal stack trace.
    Value:  0

experimental__local_alloc_elemwise (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73961a10>>) 
    Doc:  DEPRECATED: If True, enable the experimental optimization local_alloc_elemwise. Generates error if not True. Use optimizer_excluding=local_alloc_elemwise to disable.
    Value:  True

experimental__local_alloc_elemwise_assert (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73961bd0>>) 
    Doc:  When the local_alloc_elemwise is applied, add an assert to highlight shape errors.
    Value:  True

warn__ignore_bug_before ({'0.3', '0.8', '0.5', '0.10', 'None', '0.9', '0.6', '0.4.1', '1.0.2', '0.8.1', '1.0', '0.8.2', '1.0.4', 'all', '1.0.1', '0.7', '1.0.5', '1.0.3', '0.4'}) 
    Doc:  If 'None', we warn about all Aesara bugs found by default. If 'all', we don't warn about Aesara bugs found by default. If a version, we print only the warnings relative to Aesara bugs found after that version. Warning for specific bugs can be configured with specific [warn] flags.
    Value:  0.9

exception_verbosity ({'high', 'low'}) 
    Doc:  If 'low', the text of exceptions will generally refer to apply nodes with short names such as Elemwise{add_no_inplace}. If 'high', some exceptions will also refer to apply nodes with long descriptions  like:
        A. Elemwise{add_no_inplace}
                B. log_likelihood_v_given_h
                C. log_likelihood_h
    Value:  low

print_test_value (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff74952150>>) 
    Doc:  If 'True', the __eval__ of an Aesara variable will return its test_value when this is available. This has the practical conseguence that, e.g., in debugging `my_var` will print the same as `my_var.tag.test_value` when a test value is defined.
    Value:  False

compute_test_value ({'off', 'ignore', 'warn', 'raise', 'pdb'}) 
    Doc:  If 'True', Aesara will run each op at graph build time, using Constants, SharedVariables and the tag 'test_value' as inputs to the function. This helps the user track down problems in the graph before it gets optimized.
    Value:  off

compute_test_value_opt ({'off', 'ignore', 'warn', 'raise', 'pdb'}) 
    Doc:  For debugging Aesara optimization only. Same as compute_test_value, but is used during Aesara optimization
    Value:  off

check_input (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73e64e50>>) 
    Doc:  Specify if types should check their input in their C code. It can be used to speed up compilation, reduce overhead (particularly for scalars) and reduce the number of generated C files.
    Value:  True

NanGuardMode__nan_is_error (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73961f50>>) 
    Doc:  Default value for nan_is_error
    Value:  True

NanGuardMode__inf_is_error (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962090>>) 
    Doc:  Default value for inf_is_error
    Value:  True

NanGuardMode__big_is_error (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962190>>) 
    Doc:  Default value for big_is_error
    Value:  True

NanGuardMode__action ({'raise', 'warn', 'pdb'}) 
    Doc:  What NanGuardMode does when it finds a problem
    Value:  raise

DebugMode__patience (<class 'int'>) 
    Doc:  Optimize graph this many times to detect inconsistency
    Value:  10

DebugMode__check_c (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962510>>) 
    Doc:  Run C implementations where possible
    Value:  True

DebugMode__check_py (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff7487c210>>) 
    Doc:  Run Python implementations where possible
    Value:  True

DebugMode__check_finite (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962690>>) 
    Doc:  True -> complain about NaN/Inf results
    Value:  True

DebugMode__check_strides (<class 'int'>) 
    Doc:  Check that Python- and C-produced ndarrays have same strides. On difference: (0) - ignore, (1) warn, or (2) raise error
    Value:  0

DebugMode__warn_input_not_reused (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962790>>) 
    Doc:  Generate a warning when destroy_map or view_map says that an op works inplace, but the op did not reuse the input for its output.
    Value:  True

DebugMode__check_preallocated_output (<class 'str'>) 
    Doc:  Test thunks with pre-allocated memory as output storage. This is a list of strings separated by ":". Valid values are: "initial" (initial storage in storage map, happens with Scan),"previous" (previously-returned memory), "c_contiguous", "f_contiguous", "strided" (positive and negative strides), "wrong_size" (larger and smaller dimensions), and "ALL" (all of the above).
    Value:  

DebugMode__check_preallocated_output_ndim (<class 'int'>) 
    Doc:  When testing with "strided" preallocated output memory, test all combinations of strides over that number of (inner-most) dimensions. You may want to reduce that number to reduce memory or time usage, but it is advised to keep a minimum of 2.
    Value:  4

profiling__time_thunks (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962750>>) 
    Doc:  Time individual thunks when profiling
    Value:  True

profiling__n_apply (<class 'int'>) 
    Doc:  Number of Apply instances to print by default
    Value:  20

profiling__n_ops (<class 'int'>) 
    Doc:  Number of Ops to print by default
    Value:  20

profiling__output_line_width (<class 'int'>) 
    Doc:  Max line width for the profiling output
    Value:  512

profiling__min_memory_size (<class 'int'>) 
    Doc:  For the memory profile, do not print Apply nodes if the size
                 of their outputs (in bytes) is lower than this threshold
    Value:  1024

profiling__min_peak_memory (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962a50>>) 
    Doc:  The min peak memory usage of the order
    Value:  False

profiling__destination (<class 'str'>) 
    Doc:  File destination of the profiling output
    Value:  stderr

profiling__debugprint (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962bd0>>) 
    Doc:  Do a debugprint of the profiled functions
    Value:  False

profiling__ignore_first_call (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962c90>>) 
    Doc:  Do we ignore the first call of an Aesara function.
    Value:  False

on_shape_error ({'raise', 'warn'}) 
    Doc:  warn: print a warning and use the default value. raise: raise an error
    Value:  warn

openmp (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73962cd0>>) 
    Doc:  Allow (or not) parallel computation on the CPU with OpenMP. This is the default value used when creating an Op that supports OpenMP parallelization. It is preferable to define it via the Aesara configuration file ~/.aesararc or with the environment variable AESARA_FLAGS. Parallelization is only done for some operations that implement it, and even for operations that implement parallelism, each operation is free to respect this flag or not. You can control the number of threads used with the environment variable OMP_NUM_THREADS. If it is set to 1, we disable openmp in Aesara by default.
    Value:  False

openmp_elemwise_minsize (<class 'int'>) 
    Doc:  If OpenMP is enabled, this is the minimum size of vectors for which the openmp parallelization is enabled in element wise ops.
    Value:  200000

optimizer_excluding (<class 'str'>) 
    Doc:  When using the default mode, we will remove optimizer with these tags. Separate tags with ':'.
    Value:  

optimizer_including (<class 'str'>) 
    Doc:  When using the default mode, we will add optimizer with these tags. Separate tags with ':'.
    Value:  

optimizer_requiring (<class 'str'>) 
    Doc:  When using the default mode, we will require optimizer with these tags. Separate tags with ':'.
    Value:  

optdb__position_cutoff (<class 'float'>) 
    Doc:  Where to stop eariler during optimization. It represent the position of the optimizer where to stop.
    Value:  inf

optdb__max_use_ratio (<class 'float'>) 
    Doc:  A ratio that prevent infinite loop in EquilibriumGraphRewriter.
    Value:  8.0

cycle_detection ({'fast', 'regular'}) 
    Doc:  If cycle_detection is set to regular, most inplaces are allowed,but it is slower. If cycle_detection is set to faster, less inplacesare allowed, but it makes the compilation faster.The interaction of which one give the lower peak memory usage iscomplicated and not predictable, so if you are close to the peakmemory usage, triyng both could give you a small gain.
    Value:  regular

check_stack_trace ({'off', 'log', 'raise', 'warn'}) 
    Doc:  A flag for checking the stack trace during the optimization process. default (off): does not check the stack trace of any optimization log: inserts a dummy stack trace that identifies the optimizationthat inserted the variable that had an empty stack trace.warn: prints a warning if a stack trace is missing and also a dummystack trace is inserted that indicates which optimization insertedthe variable that had an empty stack trace.raise: raises an exception if a stack trace is missing
    Value:  off

metaopt__verbose (<class 'int'>) 
    Doc:  0 for silent, 1 for only warnings, 2 for full output withtimings and selected implementation
    Value:  0

metaopt__optimizer_excluding (<class 'str'>) 
    Doc:  exclude optimizers with these tags. Separate tags with ':'.
    Value:  

metaopt__optimizer_including (<class 'str'>) 
    Doc:  include optimizers with these tags. Separate tags with ':'.
    Value:  

profile (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff739630d0>>) 
    Doc:  If VM should collect profile information
    Value:  False

profile_optimizer (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff74a9f3d0>>) 
    Doc:  If VM should collect optimizer profile information
    Value:  False

profile_memory (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff747cc050>>) 
    Doc:  If VM should collect memory profile information and print it
    Value:  False

<aesara.configparser.ConfigParam object at 0x7fff73963190>
    Doc:  Useful only for the VM Linkers. When lazy is None, auto detect if lazy evaluation is needed and use the appropriate version. If the C loop isn't being used and lazy is True, use the Stack VM; otherwise, use the Loop VM.
    Value:  None

unittests__rseed (<class 'str'>) 
    Doc:  Seed to use for randomized unit tests. Special value 'random' means using a seed of None.
    Value:  666

warn__round (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff739632d0>>) 
    Doc:  Warn when using `tensor.round` with the default mode. Round changed its default from `half_away_from_zero` to `half_to_even` to have the same default as NumPy.
    Value:  False

numba__vectorize_target ({'cuda', 'parallel', 'cpu'}) 
    Doc:  Default target for numba.vectorize.
    Value:  cpu

numba__fastmath (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff749fc090>>) 
    Doc:  If True, use Numba's fastmath mode.
    Value:  True

numba__cache (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff73963450>>) 
    Doc:  If True, use Numba's file based caching.
    Value:  True

compiledir_format (<class 'str'>) 
    Doc:  Format string for platform-dependent compiled module subdirectory
(relative to base_compiledir). Available keys: aesara_version, device,
gxx_version, hostname, numpy_version, platform, processor,
python_bitwidth, python_int_bitwidth, python_version, short_platform.
Defaults to compiledir_%(short_platform)s-%(processor)s-
%(python_version)s-%(python_bitwidth)s.
    Value:  compiledir_%(short_platform)s-%(processor)s-%(python_version)s-%(python_bitwidth)s

<aesara.configparser.ConfigParam object at 0x7fff74aa40d0>
    Doc:  platform-independent root directory for compiled modules
    Value:  /build/tmp.N3diEipRoE/.aesara

<aesara.configparser.ConfigParam object at 0x7fff73ccf910>
    Doc:  platform-dependent cache directory for compiled modules
    Value:  /build/tmp.N3diEipRoE/.aesara/compiledir_Linux-6.6.26-x86_64-with-glibc2.39--3.11.8-64

blas__ldflags (<class 'str'>) 
    Doc:  lib[s] to include for [Fortran] level-3 blas implementation
    Value:  

blas__check_openmp (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7fff736ce190>>) 
    Doc:  Check for openmp library conflict.
WARNING: Setting this to False leaves you open to wrong results in blas-related operations.
    Value:  True

scan__allow_gc (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7ffeee32da10>>) 
    Doc:  Allow/disallow gc inside of Scan (default: False)
    Value:  False

scan__allow_output_prealloc (<bound method BoolParam._apply of <aesara.configparser.BoolParam object at 0x7ffeee009c10>>) 
    Doc:  Allow/disallow memory preallocation for outputs inside of scan (default: True)
    Value:  True

@brandonwillard
Copy link
Member

Do you think that this could be due to the use of a wrong version of one of the dependencies ?

Yes, it looks like we need to pin the Numba version. Thanks for reporting this!

@GaetanLepage
Copy link
Author

Yes, it looks like we need to pin the Numba version. Thanks for reporting this!

Ok thanks !
And is the support for newer versions of numba planned ?

@brandonwillard
Copy link
Member

And is the support for newer versions of numba planned ?

We probably won't be able to get to this any time soon, but we should be able to review PRs for it much sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants