Skip to content

Update dependencies#191

Open
ypapadop-amd wants to merge 5 commits into
hsa-backendfrom
ypapadop-amd/update-env
Open

Update dependencies#191
ypapadop-amd wants to merge 5 commits into
hsa-backendfrom
ypapadop-amd/update-env

Conversation

@ypapadop-amd

Copy link
Copy Markdown
Owner

No description provided.

@ypapadop-amd ypapadop-amd self-assigned this Jun 26, 2026
Copilot AI review requested due to automatic review settings June 26, 2026 19:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates ggml-hsa’s Python dependency set and aligns IRON kernel generation code with upstream IRON API changes.

Changes:

  • Bump mlir_aie dependency from 1.3.1 to 1.3.3 and adjust the associated extra index URL.
  • Remove explicit SequentialPlacer usage and rely on the default Program.resolve_program() behavior across IRON kernels.
  • Move ruff into a new requirements-dev.txt and adjust kernel backend preference ordering for GGML_OP_ADD.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/ggml-hsa/requirements-triton.txt Removes ruff from Triton environment requirements.
src/ggml-hsa/requirements-iron.txt Updates MLIR-AIE index + pins mlir_aie==1.3.3; removes ruff from base env.
src/ggml-hsa/requirements-dev.txt Introduces a dev-only requirements file containing ruff.
src/ggml-hsa/kernels/iron/unary_ops.py Drops SequentialPlacer import and uses default resolve_program().
src/ggml-hsa/kernels/iron/softmax.py Drops SequentialPlacer import and uses default resolve_program() in all program constructors.
src/ggml-hsa/kernels/iron/scale.py Drops SequentialPlacer import and uses default resolve_program().
src/ggml-hsa/kernels/iron/cross_entropy_loss.py Drops SequentialPlacer import and uses default resolve_program().
src/ggml-hsa/kernels/iron/count_equal.py Drops SequentialPlacer import and uses default resolve_program().
src/ggml-hsa/kernels/iron/clamp.py Drops SequentialPlacer import and uses default resolve_program().
src/ggml-hsa/kernels/iron/binary_ops.py Drops SequentialPlacer import and uses default resolve_program() in both paths.
src/ggml-hsa/kernels/iron/argmax.py Drops SequentialPlacer import and uses default resolve_program().
src/ggml-hsa/kernels/binary_ops.py Changes the backend attempt order for ggml_op_add() (TRITON vs IRON ordering).

Comment on lines 157 to 162
return [
_make_triton_add_kernel_spec(arch, input_tensors, output_tensor),
_make_iron_binary_kernel_spec(
arch, input_tensors, output_tensor, "GGML_OP_ADD"
),
_make_triton_add_kernel_spec(arch, input_tensors, output_tensor),
]
Comment on lines +5 to 10
--extra-index-url https://github.com/Xilinx/mlir-aie/releases/expanded_assets/v1.3.3
--extra-index-url https://github.com/Xilinx/llvm-aie/releases/expanded_assets/nightly
--extra-index-url https://pypi.org/simple

mlir_aie==1.3.1
mlir_aie==1.3.3
llvm-aie
Comment on lines +1 to +3
# Copyright (c) 2026 Advanced Micro Devices, Inc. All Rights Reserved.

ruff
Copilot AI review requested due to automatic review settings June 29, 2026 15:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Comment on lines +5 to +9
--extra-index-url https://github.com/Xilinx/mlir-aie/releases/expanded_assets/v1.3.3
--extra-index-url https://github.com/Xilinx/llvm-aie/releases/expanded_assets/nightly
--extra-index-url https://pypi.org/simple

mlir_aie==1.3.1
mlir_aie==1.3.3
Comment on lines +1 to +3
# Copyright (c) 2026 Advanced Micro Devices, Inc. All Rights Reserved.

ruff
Comment thread src/ggml-hsa/env_setup.sh
Comment on lines +38 to +42
# If both iron and triton are selected, only install triton requirements
INSTALL_LIST=("${BACKEND_LIST[@]}")
if [[ " ${BACKEND_LIST[*]} " == *" iron "* ]] && [[ " ${BACKEND_LIST[*]} " == *" triton "* ]]; then
INSTALL_LIST=("triton")
fi
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

Successfully merging this pull request may close these issues.

2 participants