Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dockerfile - Add ROCm6.3 dockerfile #790
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
base: main
Are you sure you want to change the base?
Dockerfile - Add ROCm6.3 dockerfile #790
Changes from all commits
c522d3e7f7316a32471dd455a5038e7e740File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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 upgrades
botocore/boto3to whatever the latest versions are at build time, which makes the image non-reproducible and can break future builds unexpectedly. Consider pinning to known-good versions that are compatible with urllib3 2.x (and optionally using--no-cache-dir).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.
NUM_MAKE_JOBSis declared as a build arg here but isn’t referenced anywhere in this Dockerfile, so the workflow’sbuild_args: NUM_MAKE_JOBS=...has no effect. Either remove the ARG or wire it into the build steps (e.g., pass it tomake -j/ cmake builds) to make parallelism configurable.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 OFED tarball is downloaded over plain HTTP, which is vulnerable to MITM tampering during the image build. Prefer HTTPS if available and consider verifying the downloaded artifact (checksum/signature) before executing the installer.
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.
After
ADD . ., this Dockerfile doesn’t remove the.gitdirectory. In this repo the build context includes.git(see existing CUDA/ROCm Dockerfiles whichrm -rf .gitat the end), so leaving it inflates the final image size and can slow pushes/pulls. Consider deleting.gitin the final layer afterpostinstall.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.
ifdef AMDGPU_TARGETStriggers when the variable is defined even if it’s empty, which can unexpectedly switch to the HIPCUFLAGS path and potentially break the build. Consider switching the condition to a non-empty check (e.g., usingifneq ($(strip $(AMDGPU_TARGETS)),)), so the fallback path is used when it’s unset or blank.Uh oh!
There was an error while loading. Please reload this page.