-
Notifications
You must be signed in to change notification settings - Fork 31
Update amd-docker.Dockerfile #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,9 @@ FROM ghcr.io/actions/actions-runner:latest | |||||
|
|
||||||
| ENV CXX=clang++ | ||||||
|
|
||||||
| ARG GPU_ARCH="gfx950" | ||||||
| ENV GPU_ARCH_LIST=$GPU_ARCH | ||||||
|
|
||||||
| RUN sudo apt-get update -y \ | ||||||
| && sudo apt-get install -y --no-install-recommends \ | ||||||
| software-properties-common \ | ||||||
|
|
@@ -41,11 +44,13 @@ ENV ROCM_PATH=/opt/rocm | |||||
|
|
||||||
| RUN sudo pip install --break-system-packages --no-cache-dir torch==2.10.0+rocm7.1 --index-url https://download.pytorch.org/whl/rocm7.1 | ||||||
|
|
||||||
| ARG PREBUILD_KERNELS=1 | ||||||
|
|
||||||
| RUN git clone --recursive https://github.com/ROCm/aiter.git \ | ||||||
| && cd aiter \ | ||||||
| && 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 | ||||||
|
||||||
| && 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 |
There was a problem hiding this comment.
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 toGPU_ARCH_LIST/GPU_ARCHSand 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.