Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
There was a problem hiding this comment.
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_ARCHbuild arg and export it asGPU_ARCH_LISTin the image environment. - Add a
PREBUILD_KERNELSbuild arg and pass it (along with GPU arch andMAX_JOBS) intoaiter’ssetup.py developinvocation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ARG GPU_ARCH="gfx950" | ||
| ENV GPU_ARCH_LIST=$GPU_ARCH |
There was a problem hiding this comment.
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.
| ARG GPU_ARCH="gfx950" | |
| ENV GPU_ARCH_LIST=$GPU_ARCH | |
| ARG GPU_ARCH=gfx950 | |
| ENV GPU_ARCH_LIST=${GPU_ARCH} |
| && 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 |
There was a problem hiding this comment.
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 ....
| && 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 |
No description provided.