Skip to content
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

[ROCm] ci build and dockerfile changes #161

Open
wants to merge 1 commit into
base: rocm-main
Choose a base branch
from

Conversation

Ruturaj4
Copy link

@Ruturaj4 Ruturaj4 commented Nov 26, 2024

  1. Install system GCC libraries
  2. Remove docker image
  3. apt update

@Ruturaj4 Ruturaj4 added the open-upstream Tag when you want a copy of this PR to be opened on upstream label Nov 26, 2024
Copy link

Feature branch from main is ready. Create a new PR%20Install%20system%20GCC%20libraries%0D%0A2)%20Remove%20docker%20image%0D%0A3)%20apt%20update%0A%0ACreated%20from%3A%20rocm%2Fjax%23161) destined for upstream?

@charleshofer charleshofer added open-upstream Tag when you want a copy of this PR to be opened on upstream and removed open-upstream Tag when you want a copy of this PR to be opened on upstream labels Nov 26, 2024
Copy link

Feature branch from main is ready. Create a new PR%20Install%20system%20GCC%20libraries%0D%0A2)%20Remove%20docker%20image%0D%0A3)%20apt%20update%0A%0ACreated%20from%3A%20rocm%2Fjax%23161) destined for upstream?

@charleshofer charleshofer added open-upstream Tag when you want a copy of this PR to be opened on upstream and removed open-upstream Tag when you want a copy of this PR to be opened on upstream labels Nov 26, 2024
Copy link

Feature branch from main is ready. Create a new PR destined for upstream?

@Ruturaj4 Ruturaj4 force-pushed the ci_install_sys_libs branch from f76b97a to d2e058e Compare November 27, 2024 14:19
@Ruturaj4 Ruturaj4 added open-upstream Tag when you want a copy of this PR to be opened on upstream and removed open-upstream Tag when you want a copy of this PR to be opened on upstream labels Nov 27, 2024
Copy link

Feature branch from main is ready. Create a new PR destined for upstream?

@@ -47,6 +47,13 @@ def dist_wheels(
# create manylinux image with requested ROCm installed
image = "jax-manylinux_2_28_x86_64_rocm%s" % rocm_version.replace(".", "")

# Try removing the Docker image.
try:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should do this. I was talking to Matt, and he said that the original intent of this script was to run it in Jenkins where the image has already been removed and Docker has been pruned. When you're not running in Jenkins (and on the GitHub Actions self-hosted runner), docker build should be smart enough to pick up the new image.

@@ -4,6 +4,9 @@ ARG ROCM_VERSION=6.1.1
ARG ROCM_BUILD_JOB
ARG ROCM_BUILD_NUM

# Install system GCC and C++ libraries.
RUN yum install -y gcc-c++.x86_64
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is here to fix the problem where Clang can't find the standard C++ libraries, but this is definitely something we shouldn't be doing (at least long-term). GCC 13, which is the GCC version for manylinux_2_28, is already installed as part of the base image. If this pulls in, say, GCC 14 stuff, this may put us out of manylinux compliance.

I suspect there's another solution here that involves telling Clang to check standard C++ libraries wherever GCC 13 is keeping them.

@mrodden Any thoughts on where that might be?

@@ -75,6 +75,9 @@ def install_packages(self, package_specs):
if self.pkgbin == "apt":
env["DEBIAN_FRONTEND"] = "noninteractive"

# Update indexes.
subprocess.check_call(["apt-get", "update"])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my education, what is this line for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-upstream Tag when you want a copy of this PR to be opened on upstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants