-
Notifications
You must be signed in to change notification settings - Fork 2
Update build scripts for new plugin layout #1
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
Conversation
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.
Pull Request Overview
This PR updates the build scripts to support the new plugin layout and streamline ROCm installation and CI processes.
- Removes deprecated workflow README.
- Introduces a new tool (get_rocm.py) for ROCm version management and package installation.
- Adds a CI build script (ci_build) for building wheels, docker images, and running tests.
Reviewed Changes
Copilot reviewed 35 out of 52 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| jax_rocm_plugin/.github/workflows/README.md | Removed outdated GitHub Actions workflow documentation. |
| build/tools/get_rocm.py | New script to manage ROCm installation and system-specific packages. |
| build/ci_build | New CI build script supporting wheel distribution and docker build/test. |
Files not reviewed (17)
- .dockerignore: Language not supported
- build/ci.sh: Language not supported
- build/requirements.txt: Language not supported
- docker/Dockerfile.jax-ubu22: Language not supported
- docker/Dockerfile.jax-ubu24: Language not supported
- docker/Makefile: Language not supported
- jax_rocm_plugin/.github/workflows/asan.yaml: Language not supported
- jax_rocm_plugin/.github/workflows/bazel_cpu_rbe.yml: Language not supported
- jax_rocm_plugin/.github/workflows/bazel_gpu_rbe.yml: Language not supported
- jax_rocm_plugin/.github/workflows/build_artifacts.yml: Language not supported
- jax_rocm_plugin/.github/workflows/ci-build.yaml: Language not supported
- jax_rocm_plugin/.github/workflows/cloud-tpu-ci-nightly.yml: Language not supported
- jax_rocm_plugin/.github/workflows/cloud-tpu-ci-presubmit.yml: Language not supported
- jax_rocm_plugin/.github/workflows/jax-array-api.yml: Language not supported
- jax_rocm_plugin/.github/workflows/metal_plugin_ci.yml: Language not supported
- jax_rocm_plugin/.github/workflows/pytest_cpu.yml: Language not supported
- jax_rocm_plugin/.github/workflows/pytest_cuda.yml: Language not supported
Comments suppressed due to low confidence (2)
build/ci_build:64
- The variable LOG is used here but not defined. Please define a logger (e.g., using logging.getLogger(name)) or replace its usage with another logging mechanism.
LOG.warning("Exception while retrieving xla_commit: %s" % ex)
build/ci_build:265
- The function 'build_test_docker' is invoked but not defined or imported. Please ensure that this function is properly defined to avoid runtime errors.
build_test_docker(
charleshofer
left a comment
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.
It's fine with me if you leave all of that CI stuff in there, but we don't need like 75% of it. I can just go through and remove unused stuff in another PR though.
|
Disregard my comment on the CI stuff. Deleting it all is the right thing. I misread the PR and thought it was an add. |
gulsumgudukbay
left a comment
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.
Have a comment on the jax_rocm_plugin/build/rocm/tools/build_wheels.py script
Adds a build/ci.sh script as an example of how to run the plugin build, docker image build, and run some tests in the built docker image
gulsumgudukbay
left a comment
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.
Looks good to me
No description provided.