Skip to content

Add a pass to outline computations in a function #1847

Add a pass to outline computations in a function

Add a pass to outline computations in a function #1847

Triggered via pull request June 16, 2025 22:08
@inducerinducer
synchronize #221
outlining
Status Failure
Total duration 11m 16s
Artifacts

ci.yml

on: pull_request
Matrix: downstream_tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 46 warnings
basedpyright: arraycontext/impl/pytato/outline.py#L255
Cannot access attribute "_data" for class "AbstractResultWithNamedArrays"   Attribute "_data" is unknown (reportAttributeAccessIssue)
basedpyright: arraycontext/impl/pytato/outline.py#L255
Cannot access attribute "_data" for class "Array"   Attribute "_data" is unknown (reportAttributeAccessIssue)
basedpyright: arraycontext/impl/pytato/outline.py#L237
Operator "in" not supported for types "Literal['_']" and "ArrayOrNames"   Operator "in" not supported for types "Literal['_']" and "Array" (reportOperatorIssue)
basedpyright: arraycontext/impl/pytato/outline.py#L237
Argument of type "ArrayOrNames" cannot be assigned to parameter "obj" of type "Sized" in function "len"   Type "ArrayOrNames" is not assignable to type "Sized"     "Array" is incompatible with protocol "Sized"       "__len__" is an incompatible type         Type "() -> ShapeComponent" is not assignable to type "() -> int"           Function return type "ShapeComponent" is incompatible with type "int" (reportArgumentType)
basedpyright: arraycontext/impl/pytato/compile.py#L432
Argument of type "DictOfNamedArrays | AbstractResultWithNamedArrays" cannot be assigned to parameter "result" of type "Array | DictOfNamedArrays | dict[str, Array]" in function "generate_loopy"   Type "DictOfNamedArrays | AbstractResultWithNamedArrays" is not assignable to type "Array | DictOfNamedArrays | dict[str, Array]"     Type "AbstractResultWithNamedArrays" is not assignable to type "Array | DictOfNamedArrays | dict[str, Array]"       "AbstractResultWithNamedArrays" is not assignable to "Array"       "AbstractResultWithNamedArrays" is not assignable to "DictOfNamedArrays"       "AbstractResultWithNamedArrays" is not assignable to "dict[str, Array]" (reportArgumentType)
basedpyright: arraycontext/impl/pytato/compile.py#L197
Argument of type "ArrayOrNames" cannot be assigned to parameter "dag" of type "AbstractResultWithNamedArrays" in function "transform_dag"   Type "ArrayOrNames" is not assignable to type "AbstractResultWithNamedArrays"     "Array" is not assignable to "AbstractResultWithNamedArrays" (reportArgumentType)
basedpyright: arraycontext/impl/pytato/__init__.py#L765
Argument of type "AbstractResultWithNamedArrays" cannot be assigned to parameter "expr" of type "DictOfNamedArrays" in function "materialize_with_mpms"   "AbstractResultWithNamedArrays" is not assignable to "DictOfNamedArrays" (reportArgumentType)
basedpyright: arraycontext/impl/pytato/__init__.py#L765
No overloads for "materialize_with_mpms" match the provided arguments (reportCallIssue)
basedpyright: arraycontext/impl/pytato/__init__.py#L637
Argument of type "AbstractResultWithNamedArrays" cannot be assigned to parameter "result" of type "Array | DictOfNamedArrays | dict[str, Array]" in function "generate_loopy"   Type "AbstractResultWithNamedArrays" is not assignable to type "Array | DictOfNamedArrays | dict[str, Array]"     "AbstractResultWithNamedArrays" is not assignable to "Array"     "AbstractResultWithNamedArrays" is not assignable to "DictOfNamedArrays"     "AbstractResultWithNamedArrays" is not assignable to "dict[str, Array]" (reportArgumentType)
basedpyright: arraycontext/impl/pytato/__init__.py#L608
Argument of type "Array | AbstractResultWithNamedArrays" cannot be assigned to parameter "expr" of type "AbstractResultWithNamedArrays" in function "_normalize_pt_expr"   Type "Array | AbstractResultWithNamedArrays" is not assignable to type "AbstractResultWithNamedArrays"     "Array" is not assignable to "AbstractResultWithNamedArrays" (reportArgumentType)
Tests for downstream project mirgecom
No point in testing mirgecom at the moment, see https://github.com/illinois-ceesd/mirgecom/pull/898. Test not performed.
Tests for downstream project mirgecom_examples
No point in testing mirgecom at the moment, see https://github.com/illinois-ceesd/mirgecom/pull/898. Test not performed.
Ruff
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
basedpyright: arraycontext/impl/pytato/outline.py#L255
Type of "_data" is unknown (reportUnknownMemberType)
basedpyright: arraycontext/impl/pytato/__init__.py#L766
Return type is unknown (reportUnknownVariableType)
basedpyright: arraycontext/impl/pytato/__init__.py#L765
Type of "tdag" is unknown (reportUnknownVariableType)
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pyopencl/cache.py#L420
Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/islpy/_monkeypatch.py#L569
BasicSet.foreach_basic_set with implicit conversion of self to Set is deprecated and will stop working in 2026. Explicitly convert to Set, using .to_set().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytato/target/loopy/codegen.py#L878
Aff.le_set with implicit conversion of self to PwAff is deprecated and will stop working in 2026. Explicitly convert to PwAff, using .to_pw_aff().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/islpy/_monkeypatch.py#L569
BasicSet.foreach_basic_set with implicit conversion of self to Set is deprecated and will stop working in 2026. Explicitly convert to Set, using .to_set().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytato/target/loopy/codegen.py#L878
Aff.le_set with implicit conversion of self to PwAff is deprecated and will stop working in 2026. Explicitly convert to PwAff, using .to_pw_aff().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/islpy/_monkeypatch.py#L569
BasicSet.foreach_basic_set with implicit conversion of self to Set is deprecated and will stop working in 2026. Explicitly convert to Set, using .to_set().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytato/target/loopy/codegen.py#L878
Aff.le_set with implicit conversion of self to PwAff is deprecated and will stop working in 2026. Explicitly convert to PwAff, using .to_pw_aff().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/islpy/_monkeypatch.py#L569
BasicSet.foreach_basic_set with implicit conversion of self to Set is deprecated and will stop working in 2026. Explicitly convert to Set, using .to_set().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytato/target/loopy/codegen.py#L878
Aff.le_set with implicit conversion of self to PwAff is deprecated and will stop working in 2026. Explicitly convert to PwAff, using .to_pw_aff().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/islpy/_monkeypatch.py#L569
BasicSet.foreach_basic_set with implicit conversion of self to Set is deprecated and will stop working in 2026. Explicitly convert to Set, using .to_set().
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytato/target/loopy/codegen.py#L878
Aff.le_set with implicit conversion of self to PwAff is deprecated and will stop working in 2026. Explicitly convert to PwAff, using .to_pw_aff().
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/test/test_reductions.py#L167
Broadcasting array context array types across <class 'test_reductions.MyContainer'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/test/test_reductions.py#L167
Broadcasting array context array types across <class 'test_reductions.MyContainer'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project grudge: grudge/test/test_reductions.py#L167
Broadcasting array context array types across <class 'test_reductions.MyContainer'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project grudge: grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/test/test_array.py#L55
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/test/test_array.py#L55
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project meshmode: meshmode/test/test_array.py#L55
'bcast_obj_array' is deprecated and will be unsupported from 2025. Use 'bcasts_across_obj_array', with equivalent meaning.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project meshmode: meshmode/meshmode/dof_array.py#L75
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.