-
Notifications
You must be signed in to change notification settings - Fork 451
[AMD] Fix 3 bugs when build docker on amd mi3x gpu #1401
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,10 +22,12 @@ RUN conda run -n py_3.10 conda install pip cmake -y && \ | |||||
| RUN apt-get install -y python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev build-essential cmake libedit-dev libxml2-dev | ||||||
|
|
||||||
| RUN git clone https://github.com/tile-ai/tilelang.git --recursive -b main tilelang && \ | ||||||
| conda run -n py_3.10 bash -c "cd tilelang && USE_ROCM=1 pip install -e . -v" | ||||||
| mv /opt/conda/envs/py_3.10/compiler_compat /opt/conda/envs/py_3.10/compiler_compat.bak || true && \ | ||||||
| conda run -n py_3.10 bash -c "pip install 'numpy<2.0' --force-reinstall && cd tilelang && USE_ROCM=1 pip install -e . -v" | ||||||
|
||||||
| conda run -n py_3.10 bash -c "pip install 'numpy<2.0' --force-reinstall && cd tilelang && USE_ROCM=1 pip install -e . -v" | |
| conda run -n py_3.10 bash -c "pip install 'numpy>=1.24,<2.0' --force-reinstall && cd tilelang && USE_ROCM=1 pip install -e . -v" |
Copilot
AI
Dec 10, 2025
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.
This line combines multiple unrelated operations (git clone, compiler_compat workaround, numpy installation, and tilelang installation) into a single RUN command. Consider splitting this into separate RUN commands for better readability, easier debugging, and clearer Docker layer caching. For example:
RUN git clone https://github.com/tile-ai/tilelang.git --recursive -b main tilelang
RUN mv /opt/conda/envs/py_3.10/compiler_compat /opt/conda/envs/py_3.10/compiler_compat.bak || true
RUN conda run -n py_3.10 bash -c "pip install 'numpy<2.0' --force-reinstall"
RUN conda run -n py_3.10 bash -c "cd tilelang && USE_ROCM=1 pip install -e . -v"
Copilot
AI
Dec 10, 2025
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.
Using ENTRYPOINT ["/bin/bash", "--login", "-i"] makes it difficult to override the container's command and may cause issues with non-interactive use cases (e.g., CI/CD, docker exec). The -i flag is particularly problematic as it forces interactive mode even when no TTY is attached. Consider using CMD ["bash"] like the other Dockerfiles in this repository (e.g., Dockerfile.cu126, Dockerfile.cu128), or if ENTRYPOINT is needed, use ENTRYPOINT ["/bin/bash", "-c"] with a CMD for flexibility.
| ENTRYPOINT ["/bin/bash", "--login", "-i"] | |
| CMD ["bash"] |
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.
The
compiler_compatworkaround lacks inline documentation. Consider adding a comment explaining why this directory needs to be moved/renamed to fix the glibc/conda linker mismatch issue. This will help future maintainers understand the purpose of this non-obvious operation.