Skip to content

Update amd-docker.Dockerfile#458

Merged
msaroufim merged 1 commit intomainfrom
danielhua23-patch-1
Mar 5, 2026
Merged

Update amd-docker.Dockerfile#458
msaroufim merged 1 commit intomainfrom
danielhua23-patch-1

Conversation

@danielhua23
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 5, 2026 05:36
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 5, 2026

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/libkernelbot
  utils.py
Project Total  

This report was generated by python-coverage-comment-action

@msaroufim msaroufim merged commit cdd4c93 into main Mar 5, 2026
7 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the AMD runner Docker image build to parameterize ROCm kernel compilation for the aiter dependency via build-time arguments.

Changes:

  • Add a GPU_ARCH build arg and export it as GPU_ARCH_LIST in the image environment.
  • Add a PREBUILD_KERNELS build arg and pass it (along with GPU arch and MAX_JOBS) into aiter’s setup.py develop invocation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +5 to +6
ARG GPU_ARCH="gfx950"
ENV GPU_ARCH_LIST=$GPU_ARCH
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

ARG GPU_ARCH="gfx950" will include the quote characters in the default value (Dockerfile instructions don’t do shell-style unquoting). That can propagate to GPU_ARCH_LIST/GPU_ARCHS and break downstream parsing. Use an unquoted default (e.g., ARG GPU_ARCH=gfx950) and reference it via ${GPU_ARCH} when setting the ENV to avoid accidental literal characters.

Suggested change
ARG GPU_ARCH="gfx950"
ENV GPU_ARCH_LIST=$GPU_ARCH
ARG GPU_ARCH=gfx950
ENV GPU_ARCH_LIST=${GPU_ARCH}

Copilot uses AI. Check for mistakes.
&& git checkout f3be04a12a0cfd6b5e2c7a94edc774f1bc24460d \
&& sudo pip install --break-system-packages -r requirements.txt \
&& sudo python3 setup.py develop
&& sudo MAX_JOBS=64 PREBUILD_KERNELS=$PREBUILD_KERNELS GPU_ARCHS=$GPU_ARCH_LIST python3 setup.py develop
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

sudo MAX_JOBS=64 PREBUILD_KERNELS=... GPU_ARCHS=... python3 ... won’t set those variables for the python3 process; the assignments are treated as arguments to sudo, which typically causes sudo: MAX_JOBS=64: command not found and breaks the image build. Set the environment on the command side (e.g., MAX_JOBS=64 ... sudo python3 ...) or use sudo env MAX_JOBS=64 PREBUILD_KERNELS=... GPU_ARCHS=... python3 ....

Suggested change
&& sudo MAX_JOBS=64 PREBUILD_KERNELS=$PREBUILD_KERNELS GPU_ARCHS=$GPU_ARCH_LIST python3 setup.py develop
&& sudo env MAX_JOBS=64 PREBUILD_KERNELS=$PREBUILD_KERNELS GPU_ARCHS=$GPU_ARCH_LIST python3 setup.py develop

Copilot uses AI. Check for mistakes.
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.

3 participants