Skip to content

Commit

Permalink
Merge pull request #25096 from nitins17:update-rocm-ci-scripts
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 700725187
  • Loading branch information
Google-ML-Automation committed Nov 27, 2024
2 parents df8ecb9 + 84dc9ba commit 04a4f9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions build/rocm/dev_build_rocm.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ def build_jax_xla(xla_path, rocm_version, rocm_target, use_clang, clang_path):
build_command = [
"python3",
"./build/build.py",
"--enable_rocm",
"--build_gpu_plugin",
"--gpu_plugin_rocm_version=60",
"build"
f"--use_clang={str(use_clang).lower()}",
"--wheels=jaxlib,jax-rocm-plugin,jax-rocm-pjrt"
"--rocm_path=%/opt/rocm-{rocm_version}/",
"--rocm_version=60",
f"--rocm_amdgpu_targets={rocm_target}",
f"--rocm_path=/opt/rocm-{rocm_version}/",
bazel_options,
"--verbose"
]

if clang_option:
Expand Down
7 changes: 4 additions & 3 deletions build/rocm/tools/build_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ def build_jaxlib_wheel(
cmd = [
"python",
"build/build.py",
"--enable_rocm",
"--build_gpu_plugin",
"--gpu_plugin_rocm_version=60",
"build"
"--wheels=jaxlib,jax-rocm-plugin,jax-rocm-pjrt"
"--rocm_path=%s" % rocm_path,
"--rocm_version=60",
"--use_clang=%s" % use_clang,
"--verbose"
]

# Add clang path if clang is used.
Expand Down

0 comments on commit 04a4f9b

Please sign in to comment.