Skip to content

Add a pass to outline computations in a function #1829

Add a pass to outline computations in a function

Add a pass to outline computations in a function #1829

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

ci.yml

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

Annotations

9 errors and 53 warnings
Ruff
Process completed with exit code 1.
Mypy
Process completed with exit code 1.
basedpyright
Process completed with exit code 1.
basedpyright
5 errors
basedpyright: arraycontext/impl/pytato/outline.py#L268
Argument of type "object" cannot be assigned to parameter "kwargs" of type "Array" in function "__call__"   "object" is not assignable to "Array" (reportArgumentType)
basedpyright: arraycontext/impl/pytato/outline.py#L237
Argument of type "tuple[object, ...]" cannot be assigned to parameter "args" of type "tuple[object]" in function "_call_with_placeholders"   "tuple[object, ...]" is not assignable to "tuple[object]"     Tuple size mismatch; expected 1 but received indeterminate (reportArgumentType)
basedpyright: arraycontext/impl/pytato/outline.py#L217
Argument of type "tuple[object, ...]" cannot be assigned to parameter "args" of type "tuple[object]" in function "_call_with_placeholders"   "tuple[object, ...]" is not assignable to "tuple[object]"     Tuple size mismatch; expected 1 but received indeterminate (reportArgumentType)
basedpyright: arraycontext/impl/pytato/outline.py#L119
Cannot access attribute "dtype" for class "object"   Attribute "dtype" is unknown (reportAttributeAccessIssue)
basedpyright: arraycontext/impl/pytato/outline.py#L118
Cannot access attribute "shape" for class "object"   Attribute "shape" is unknown (reportAttributeAccessIssue)
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.
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.
Ruff
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
basedpyright: arraycontext/impl/pytato/outline.py#L119
Type of "dtype" is unknown (reportUnknownMemberType)
basedpyright: arraycontext/impl/pytato/outline.py#L118
Argument type is unknown   Argument corresponds to parameter "shape" in function "make_placeholder" (reportUnknownArgumentType)
basedpyright: arraycontext/impl/pytato/outline.py#L118
Type of "shape" is unknown (reportUnknownMemberType)
basedpyright: arraycontext/impl/pytato/compile.py#L225
Return type is unknown (reportUnknownVariableType)
basedpyright: arraycontext/impl/pytato/compile.py#L195
Return type, "Placeholder | Unknown", is partially unknown (reportUnknownParameterType)
basedpyright: arraycontext/impl/pytato/__init__.py#L973
Method "transform_dag" is not marked as override but is overriding a method in class "_BasePytatoArrayContext" (reportImplicitOverride)
basedpyright: arraycontext/impl/pytato/__init__.py#L239
Function calls and mutable objects not allowed within parameter default value expression (reportCallInDefaultInitializer)
basedpyright: arraycontext/context.py#L584
"id" is not accessed (reportUnusedParameter)
basedpyright: arraycontext/container/traversal.py#L413
Return type is Any (reportAny)
basedpyright: arraycontext/container/traversal.py#L94
Import "ArrayOrContainerTc" is not accessed (reportUnusedImport)
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/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'minimum'>'.
Pytest Conda Py3 Intel: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'minimum'>'.
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/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'reduce_kernel_stage2'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'reduce_kernel_stage1'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'maximum'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'maximum'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'cdouble_conj_kernel'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'cdouble_conj_kernel'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'copy'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'copy'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'minimum'>'.
Pytest Conda Py3 POCL: .conda-root/envs/testing/lib/python3.13/site-packages/pytools/py_codegen.py#L119
Overwriting existing generated code in linecache: '<pyopencl invoker for 'minimum'>'.
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/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
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.::warning file=/home/runner/work/arraycontext/arraycontext/grudge/.conda-root/envs/testing/lib/python3.13/site-packages/meshmode/dof_array.py,line=75::'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.
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.