Skip to content

Commit f8e2385

Browse files
Ruturaj4Github Actions
authored andcommitted
[ROCm] ci build and dockerfile changes
1 parent 6763fcf commit f8e2385

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

build/rocm/build_wheels/Dockerfile.manylinux_2_28_x86_64.rocm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ ARG ROCM_VERSION=6.1.1
44
ARG ROCM_BUILD_JOB
55
ARG ROCM_BUILD_NUM
66

7+
# Install system GCC and C++ libraries.
8+
RUN yum install -y gcc-c++.x86_64
9+
710
RUN --mount=type=cache,target=/var/cache/dnf \
811
--mount=type=bind,source=build/rocm/tools/get_rocm.py,target=get_rocm.py \
912
python3 get_rocm.py --rocm-version=$ROCM_VERSION --job-name=$ROCM_BUILD_JOB --build-num=$ROCM_BUILD_NUM

build/rocm/ci_build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ def dist_wheels(
4747
# create manylinux image with requested ROCm installed
4848
image = "jax-manylinux_2_28_x86_64_rocm%s" % rocm_version.replace(".", "")
4949

50+
# Try removing the Docker image.
51+
try:
52+
subprocess.run(["docker", "rmi", image], check=True)
53+
print(f"Image {image} removed successfully.")
54+
except subprocess.CalledProcessError as e:
55+
print(f"Failed to remove Docker image {image}: {e}")
56+
5057
cmd = [
5158
"docker",
5259
"build",

build/rocm/tools/get_rocm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def install_packages(self, package_specs):
7575
if self.pkgbin == "apt":
7676
env["DEBIAN_FRONTEND"] = "noninteractive"
7777

78+
# Update indexes.
79+
subprocess.check_call(["apt-get", "update"])
80+
7881
LOG.info("Running %r" % cmd)
7982
subprocess.check_call(cmd, env=env)
8083

0 commit comments

Comments
 (0)