Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
28ff97b
add test_rocprofiler_sdk.py, updated fetch_test_configurations.py
jbonnell-amd Aug 20, 2025
1530503
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Aug 20, 2025
cb6b764
remove --rocprofiler-sdk from fetch_artifact_args
jbonnell-amd Aug 21, 2025
8634001
Add cmake prefix path to test_rocprofiler_sdk.py
jbonnell-amd Aug 25, 2025
f9664ca
Update cmake commands, add more verbose to pytest
jbonnell-amd Aug 27, 2025
340a41b
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Aug 27, 2025
c22a488
Update Dockerfile to include rocprofiler-sdk test dependencies
jbonnell-amd Sep 2, 2025
6ea7d70
Setup packages and environment in test_rocprofiler_sdk.py
jbonnell-amd Sep 3, 2025
7be39e3
Update env setup in test_rocprofiler_sdk.py
jbonnell-amd Sep 4, 2025
b1b31c8
Add cmake config to atrifact-rocprofiler-sdk.toml
jbonnell-amd Sep 8, 2025
72151af
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Sep 29, 2025
baa230b
Add build tests cmake arg, add tests to provide artifact declaration
jbonnell-amd Sep 29, 2025
4eb94c0
move provide artifact block location in CMakeLists.txt
jbonnell-amd Sep 29, 2025
36220a9
Add total_shard parameter to rocprofiler-sdk in test_matrix
jbonnell-amd Sep 30, 2025
90337b5
Add sudo apt-get update command to test_rocprofiler_sdk.py
jbonnell-amd Sep 30, 2025
f88a2fa
Add rccl runtime dependency to SDK subproject
jbonnell-amd Oct 9, 2025
03a7f5c
Move rrcl from runtime dep to build dep
jbonnell-amd Oct 9, 2025
406c285
Cleanup old changes
jbonnell-amd Nov 21, 2025
5227ee4
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Nov 21, 2025
d82fb76
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Dec 1, 2025
32b4528
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Dec 1, 2025
ec1eeb6
Remove rccl build dep from SDK
jbonnell-amd Dec 4, 2025
9f8e742
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Dec 4, 2025
2ca56c1
Change build tests to always on
jbonnell-amd Dec 4, 2025
8646127
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Dec 9, 2025
66ca92a
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Dec 15, 2025
0bfe466
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Dec 30, 2025
3a40a1d
Add rocprofiler-sdk-tests subproject template
jbonnell-amd Dec 30, 2025
97f1722
Update rocprofiler-sdk-tests definition
jbonnell-amd Dec 31, 2025
206af88
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Jan 6, 2026
ab69274
changes to subproject dep provider to losen restrictions listed in IG…
venky1306 Jan 8, 2026
a090195
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Jan 9, 2026
5077e2c
Add SDK python requirements for building
jbonnell-amd Jan 9, 2026
052a29c
Add back Cmake commands to build sdk tests
jbonnell-amd Jan 9, 2026
b51919f
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Jan 12, 2026
222a0b3
Add rocprofiler-sdk arg to install_rocm_from_artifacts.py
jbonnell-amd Jan 12, 2026
3a2ec16
Add rocprofiler_sdk to artifacts_group in install_rocm_from_artifacts.py
jbonnell-amd Jan 12, 2026
b8ec524
Add gcc requirement needed for oft2 pip install
jbonnell-amd Jan 13, 2026
fa377ce
Update gcc command
jbonnell-amd Jan 13, 2026
76a6d63
Add build-essential to sdk requirements step
jbonnell-amd Jan 13, 2026
73e15f9
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Jan 13, 2026
d89c30c
Add apt-get update to sdk reqs
jbonnell-amd Jan 13, 2026
bd242ce
Add temp libdw-dev change to action.yml
jbonnell-amd Jan 14, 2026
b033674
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Jan 16, 2026
6adbfc4
Add lib/cmake to test artifacts
jbonnell-amd Jan 19, 2026
a39d906
Remove requirements-external.txt
jbonnell-amd Jan 23, 2026
600a728
verify new cmake arg for therock packaging in rocprofiler-sdk.
venky1306 Jan 30, 2026
4ad91ce
test rocprofiler-sdk PR.
venky1306 Jan 30, 2026
404d48a
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Feb 3, 2026
34dc30f
Resolve conflict
jbonnell-amd Feb 3, 2026
ac4e0f9
Update rocm-systems submodule again
jbonnell-amd Feb 3, 2026
be12342
Remove apt installs from action.yml, update test_rocprofiler_sdk.py
jbonnell-amd Feb 4, 2026
f5dcd3a
Linting on test_rocprofiler_sdk.py
jbonnell-amd Feb 4, 2026
6d56dc1
Fix python error in test_rocprofiler_sdk.py, remove sdk_dev artifact …
jbonnell-amd Feb 4, 2026
268287c
Update cwd for cmake_config_cmd in test_rocprofiler_sdk.py
jbonnell-amd Feb 6, 2026
99e8fc3
Update CMake args for test_rocprofiler_sdk.py
jbonnell-amd Feb 6, 2026
bc0c587
remove explicit rock cmake arg from rocprofiler-sdk.
venky1306 Feb 9, 2026
80f3f5e
turn off rocprofiler-sdk samples.
venky1306 Feb 9, 2026
7000a1e
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Feb 9, 2026
761fe3e
turn off build ci flag in rocprofiler-sdk
venkat1361 Feb 9, 2026
2464517
[rocprofiler-sdk] add setup step to install rocprofiler-sdk tests req…
venkat1361 Feb 9, 2026
6697fc5
Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-tests
jbonnell-amd Feb 17, 2026
917888f
Revert "Merge branch 'main' into users/jbonnell-amd/rocprofiler-sdk-t…
jbonnell-amd Feb 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 22 additions & 33 deletions .github/workflows/build_linux_jax_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ on:
ref:
description: "Branch, tag or SHA to checkout. Defaults to the reference or SHA that triggered the workflow."
type: string
jax_ref:
description: "rocm-jax repository ref/branch to check out"
type: string
default: "rocm-jaxlib-v0.8.0-fixdevtar"
workflow_dispatch:
inputs:
amdgpu_family:
Expand Down Expand Up @@ -97,14 +93,10 @@ on:
description: CloudFront base URL pointing to staging Python index
type: string
default: "https://rocm.devreleases.amd.com/v2-staging"
ref:
description: TheRock repository ref/branch to check out
type: string
default: ""
jax_ref:
description: rocm-jax repository ref/branch to check out
type: string
default: "rocm-jaxlib-v0.8.0-fixdevtar"
default: rocm-jaxlib-v0.8.0

permissions:
id-token: write
Expand All @@ -116,19 +108,15 @@ jobs:
build_jax_wheels:
strategy:
matrix:
jax_ref: [rocm-jaxlib-v0.8.0-fixdevtar]
jax_ref: [rocm-jaxlib-v0.8.0]
name: Build Linux JAX Wheels | ${{ inputs.amdgpu_family }} | Python ${{ inputs.python_version }}
runs-on: ${{ github.repository_owner == 'ROCm' && 'azure-linux-scale-rocm' || 'ubuntu-24.04' }}
env:
PACKAGE_DIST_DIR: ${{ github.workspace }}/jax/jax_rocm_plugin/wheelhouse
S3_BUCKET_PY: "therock-${{ inputs.release_type }}-python"
outputs:
cp_version: ${{ env.cp_version }}
jax_version: ${{ steps.write_jax_versions.outputs.jax_version }}
jaxlib_version: ${{ steps.write_jax_versions.outputs.jaxlib_version }}
jax_plugin_version: ${{ steps.write_jax_versions.outputs.jax_plugin_version }}
jax_pjrt_version: ${{ steps.write_jax_versions.outputs.jax_pjrt_version }}
jax_ref: ${{ matrix.jax_ref }}
jax_version: ${{ steps.extract_jax_version.outputs.jax_version }}
steps:
- name: Checkout TheRock
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -168,19 +156,25 @@ jobs:
--therock-path="${{ inputs.tar_url }}" \
dist_wheels

- name: Extract JAX versions from built wheels
id: write_jax_versions
- name: Extract JAX version
id: extract_jax_version
run: |
python ./build_tools/github_actions/write_jax_versions.py \
--dist-dir ${{ env.PACKAGE_DIST_DIR }}
# Extract JAX version from requirements.txt (e.g., "jax==0.8.0")
# Remove all whitespace from requirements.txt to simplify parsing
# Search for lines starting with "jax==" or "jaxlib==" followed by version (excluding comments)
# Extract the version number by splitting on '=' and taking the 3rd field
# [^#]+ matches one or more characters that are NOT '#', ensuring we stop before any inline comments
JAX_VERSION=$(tr -d ' ' < jax/build/requirements.txt \
| grep -E '^(jax|jaxlib)==[^#]+' | head -n1 | cut -d'=' -f3)
echo "jax_version=$JAX_VERSION" >> "$GITHUB_OUTPUT"

- name: Install AWS CLI
if: always()
run: bash ./dockerfiles/install_awscli.sh

- name: Configure AWS Credentials
if: always()
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-${{ inputs.release_type }}
Expand Down Expand Up @@ -232,15 +226,14 @@ jobs:
with:
amdgpu_family: ${{ inputs.amdgpu_family }}
release_type: ${{ inputs.release_type }}
s3_subdir: ${{ inputs.s3_subdir }}
package_index_url: ${{ inputs.cloudfront_staging_url }}
rocm_version: ${{ inputs.rocm_version }}
tar_url: ${{ inputs.tar_url }}
python_version: ${{ inputs.python_version }}
repository: ${{ inputs.repository || github.repository }}
ref: ${{ inputs.ref || '' }}
jax_ref: ${{ needs.build_jax_wheels.outputs.jax_ref }}
jax_version: ${{ needs.build_jax_wheels.outputs.jax_version }}
jaxlib_version: ${{ needs.build_jax_wheels.outputs.jaxlib_version }}
jax_ref: ${{ inputs.jax_ref }}
test_runs_on: ${{ needs.generate_target_to_run.outputs.test_runs_on }}

upload_jax_wheels:
Expand All @@ -250,9 +243,8 @@ jobs:
runs-on: ubuntu-24.04
env:
S3_BUCKET_PY: "therock-${{ inputs.release_type }}-python"
JAXLIB_VERSION: "${{ needs.build_jax_wheels.outputs.jaxlib_version }}"
JAX_PLUGIN_VERSION: "${{ needs.build_jax_wheels.outputs.jax_plugin_version }}"
JAX_PJRT_VERSION: "${{ needs.build_jax_wheels.outputs.jax_pjrt_version }}"
JAX_VERSION: "${{ needs.build_jax_wheels.outputs.jax_version }}"
ROCM_VERSION: "${{ inputs.rocm_version }}"
CP_VERSION: "${{ needs.build_jax_wheels.outputs.cp_version }}"

steps:
Expand All @@ -264,7 +256,7 @@ jobs:

- name: Configure AWS Credentials
if: always()
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-${{ inputs.release_type }}
Expand All @@ -281,17 +273,14 @@ jobs:
if: ${{ env.upload == 'true' }}
run: |
echo "Copying exact tested wheels to release S3 bucket..."
echo " JAXLIB_VERSION=${JAXLIB_VERSION}"
echo " JAX_PLUGIN_VERSION=${JAX_PLUGIN_VERSION}"
echo " JAX_PJRT_VERSION=${JAX_PJRT_VERSION}"
aws s3 cp \
s3://${S3_BUCKET_PY}/${{ inputs.s3_staging_subdir }}/${{ inputs.amdgpu_family }}/ \
s3://${S3_BUCKET_PY}/${{ inputs.s3_subdir }}/${{ inputs.amdgpu_family }}/ \
--recursive \
--exclude "*" \
--include "jaxlib-${JAXLIB_VERSION}-${CP_VERSION}-manylinux_2_27_x86_64.whl" \
--include "jax_rocm7_plugin-${JAX_PLUGIN_VERSION}-${CP_VERSION}-manylinux_2_28_x86_64.whl" \
--include "jax_rocm7_pjrt-${JAX_PJRT_VERSION}-py3-none-manylinux_2_28_x86_64.whl"
--include "jaxlib-${JAX_VERSION}+rocm${ROCM_VERSION}-${CP_VERSION}-manylinux_2_27_x86_64.whl" \
--include "jax_rocm7_plugin-${JAX_VERSION}+rocm${ROCM_VERSION}-${CP_VERSION}-manylinux_2_28_x86_64.whl" \
--include "jax_rocm7_pjrt-${JAX_VERSION}+rocm${ROCM_VERSION}-py3-none-manylinux_2_28_x86_64.whl"

- name: (Re-)Generate Python package release index
if: ${{ env.upload == 'true' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_native_linux_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
fail-fast: false
runs-on: ${{ github.repository_owner == 'ROCm' && 'azure-linux-scale-rocm' || 'ubuntu-24.04' }}
env:
BUILD_IMAGE: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:d6ae5712a9c7e8b88281d021e907b312cd8a26295b95690baef3e8dde4805858
BUILD_IMAGE: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:db2b63f938941dde2abc80b734e64b45b9995a282896d513a0f3525d4591d6cb
ARTIFACT_RUN_ID: ${{ inputs.artifact_run_id || github.run_id }}
PACKAGE_SUFFIX: ${{ inputs.package_suffix != '' && inputs.package_suffix || '' }}
OUTPUT_DIR: ${{ github.workspace }}/output
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
run: bash ./dockerfiles/install_awscli.sh

- name: Configure AWS Credentials for non-forked repos
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-${{ inputs.release_type }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_portable_linux_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
permissions:
id-token: write
container:
image: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:d6ae5712a9c7e8b88281d021e907b312cd8a26295b95690baef3e8dde4805858
image: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:db2b63f938941dde2abc80b734e64b45b9995a282896d513a0f3525d4591d6cb
# --cap-add=SYS_PTRACE : to enable ptrace insided the build container for tsan builds
# --security-opt seccomp=unconfined : to disable the system call filtering for tsan builds
options: -v /runner/config:/home/awsconfig/ --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:

- name: Configure AWS Credentials for non-forked repos
if: ${{ always() && !github.event.pull_request.head.repo.fork }}
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-ci
Expand Down
47 changes: 18 additions & 29 deletions .github/workflows/build_portable_linux_python_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,20 @@ on:
type: string
package_version:
type: string
outputs:
package_find_links_url:
description: URL for pip --find-links to install built packages
value: ${{ jobs.build_rocm_wheels.outputs.package_find_links_url }}

permissions:
contents: read

run-name: Build portable Linux Python Packages (${{ inputs.artifact_group }}, ${{ inputs.package_version }})

jobs:
build_rocm_wheels:
build:
name: Build Python | ${{ inputs.artifact_group }}
# Note: GitHub-hosted runners run out of disk space for some gpu families
runs-on: ${{ github.repository_owner == 'ROCm' && 'azure-linux-scale-rocm' || 'ubuntu-24.04' }}
permissions:
id-token: write
container:
image: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:d6ae5712a9c7e8b88281d021e907b312cd8a26295b95690baef3e8dde4805858
options: -v /runner/config:/home/awsconfig/
outputs:
package_find_links_url: ${{ steps.upload.outputs.package_find_links_url }}
image: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:db2b63f938941dde2abc80b734e64b45b9995a282896d513a0f3525d4591d6cb
env:
AWS_SHARED_CREDENTIALS_FILE: /home/awsconfig/credentials.ini
ARTIFACT_RUN_ID: "${{ inputs.artifact_run_id != '' && inputs.artifact_run_id || github.run_id }}"
ARTIFACTS_DIR: "${{ github.workspace }}/artifacts"
PACKAGES_DIR: "${{ github.workspace }}/packages"
Expand All @@ -63,13 +53,15 @@ jobs:
- name: Install Python requirements
run: pip install -r requirements.txt

# Note: we could fetch "all" artifacts if we wanted to include more files
- name: Fetch artifacts
run: |
python ./build_tools/fetch_artifacts.py \
--run-github-repo="${{ inputs.artifact_github_repo }}" \
--run-id="${{ env.ARTIFACT_RUN_ID }}" \
--artifact-group="${{ inputs.artifact_group }}" \
--output-dir="${{ env.ARTIFACTS_DIR }}"
--output-dir="${{ env.ARTIFACTS_DIR }}" \
_dev_ _lib_ _run_

- name: Build Python packages
run: |
Expand All @@ -78,20 +70,17 @@ jobs:
--dest-dir="${{ env.PACKAGES_DIR }}" \
--version="${{ inputs.package_version }}"

- name: Configure AWS Credentials for non-forked repos
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-ci

# NOTE: we use `github.run_id` and NOT `env.ARTIFACT_RUN_ID` here!
# This ensures that if they are different we _download_ artifacts from the
# input run's subdirectory and _upload_ to our current run's subdirectory.
- name: Upload Python packages
id: upload
- name: Inspect Python packages
run: |
python build_tools/github_actions/upload_python_packages.py \
--input-packages-dir="${{ env.PACKAGES_DIR }}" \
--artifact-group="${{ inputs.artifact_group }}" \
--run-id="${{ github.run_id }}"
ls -la "${{ env.PACKAGES_DIR }}"

# TODO(#1559): Sanity check (Linux can't find the directories, maybe Docker issues?)

# - name: Sanity check Python packages
# run: |
# piprepo build "${{ env.PACKAGES_DIR }}/dist"
# pip install rocm[devel]==${{ inputs.package_version }} \
# --extra-index-url "${{ env.PACKAGES_DIR }}/dist/simple/"
# rocm-sdk test

# TODO(#1559): upload packages to artifacts S3 bucket and/or a dedicated Python packages bucket
41 changes: 8 additions & 33 deletions .github/workflows/build_portable_linux_pytorch_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ jobs:
name: Build | ${{ inputs.amdgpu_family }} | py ${{ inputs.python_version }} | torch ${{ inputs.pytorch_git_ref }}
runs-on: ${{ github.repository_owner == 'ROCm' && 'azure-linux-scale-rocm' || 'ubuntu-24.04' }}
container:
image: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:d6ae5712a9c7e8b88281d021e907b312cd8a26295b95690baef3e8dde4805858
image: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:db2b63f938941dde2abc80b734e64b45b9995a282896d513a0f3525d4591d6cb
env:
OUTPUT_DIR: ${{ github.workspace }}/output
PACKAGE_DIST_DIR: ${{ github.workspace }}/output/packages/dist
RELEASE_TYPE: ${{ inputs.release_type }}
S3_BUCKET_PY: "therock-${{ inputs.release_type }}-python"
optional_build_prod_arguments: ""
outputs:
Expand All @@ -127,7 +126,6 @@ jobs:
# packages, for example via `pip install torch==${TORCH_VERSION}`.
torch_version: ${{ steps.build-pytorch-wheels.outputs.torch_version }}
torchaudio_version: ${{ steps.build-pytorch-wheels.outputs.torchaudio_version }}
apex_version: ${{ steps.build-pytorch-wheels.outputs.apex_version }}
torchvision_version: ${{ steps.build-pytorch-wheels.outputs.torchvision_version }}
triton_version: ${{ steps.build-pytorch-wheels.outputs.triton_version }}
steps:
Expand Down Expand Up @@ -162,7 +160,6 @@ jobs:
run: |
./external-builds/pytorch/pytorch_torch_repo.py checkout --repo-hashtag nightly
./external-builds/pytorch/pytorch_audio_repo.py checkout --repo-hashtag nightly
./external-builds/pytorch/pytorch_apex_repo.py checkout --repo-hashtag master
./external-builds/pytorch/pytorch_vision_repo.py checkout --repo-hashtag nightly
./external-builds/pytorch/pytorch_triton_repo.py checkout

Expand All @@ -172,12 +169,12 @@ jobs:
run: |
./external-builds/pytorch/pytorch_torch_repo.py checkout --gitrepo-origin https://github.com/ROCm/pytorch.git --repo-hashtag ${{ inputs.pytorch_git_ref }}
./external-builds/pytorch/pytorch_audio_repo.py checkout --require-related-commit
./external-builds/pytorch/pytorch_apex_repo.py checkout --require-related-commit
./external-builds/pytorch/pytorch_vision_repo.py checkout --require-related-commit
./external-builds/pytorch/pytorch_triton_repo.py checkout

# Note: determine_version.py sets optional_build_prod_arguments in
# GITHUB_ENV, which includes --rocm-sdk-version and --version-suffix.
- name: Create pip cache directory
run: mkdir -p /tmp/pipcache

- name: Determine optional arguments passed to `build_prod_wheels.py`
if: ${{ inputs.rocm_version }}
run: |
Expand All @@ -192,6 +189,7 @@ jobs:
./external-builds/pytorch/build_prod_wheels.py \
build \
--install-rocm \
--pip-cache-dir /tmp/pipcache \
--index-url "${{ inputs.cloudfront_url }}/${{ inputs.amdgpu_family }}/" \
--clean \
--output-dir ${{ env.PACKAGE_DIST_DIR }} ${{ env.optional_build_prod_arguments }}
Expand All @@ -201,20 +199,9 @@ jobs:
run: |
python external-builds/pytorch/sanity_check_wheel.py ${{ env.PACKAGE_DIST_DIR }}/

- name: Generate PyTorch manifest
run: |
python build_tools/github_actions/generate_pytorch_manifest.py \
--manifest-dir "${{ env.PACKAGE_DIST_DIR }}/manifests" \
--python-version "${{ inputs.python_version }}" \
--pytorch-git-ref "${{ inputs.pytorch_git_ref }}" \
--pytorch-dir "external-builds/pytorch/pytorch" \
--pytorch-audio-dir "external-builds/pytorch/pytorch_audio" \
--pytorch-vision-dir "external-builds/pytorch/pytorch_vision" \
--triton-dir "external-builds/pytorch/triton"

- name: Configure AWS Credentials
if: always()
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-${{ inputs.release_type }}
Expand All @@ -225,16 +212,6 @@ jobs:
aws s3 cp ${{ env.PACKAGE_DIST_DIR }}/ s3://${{ env.S3_BUCKET_PY }}/${{ inputs.s3_staging_subdir }}/${{ inputs.amdgpu_family }}/ \
--recursive --exclude "*" --include "*.whl"

- name: Upload PyTorch manifest to S3 artifacts
if: ${{ github.repository_owner == 'ROCm' }}
run: |
python build_tools/github_actions/upload_pytorch_manifest.py \
--dist-dir "${{ env.PACKAGE_DIST_DIR }}" \
--run-id "${{ github.run_id }}" \
--amdgpu-family "${{ inputs.amdgpu_family }}" \
--python-version "${{ inputs.python_version }}" \
--pytorch-git-ref "${{ inputs.pytorch_git_ref }}"

- name: (Re-)Generate Python package release index for staging
if: ${{ github.repository_owner == 'ROCm' }}
env:
Expand Down Expand Up @@ -290,7 +267,6 @@ jobs:
env:
S3_BUCKET_PY: "therock-${{ inputs.release_type }}-python"
CP_VERSION: "${{ needs.build_pytorch_wheels.outputs.cp_version }}"
APEX_VERSION: "${{ needs.build_pytorch_wheels.outputs.apex_version }}"
TORCH_VERSION: "${{ needs.build_pytorch_wheels.outputs.torch_version }}"
TORCHAUDIO_VERSION: "${{ needs.build_pytorch_wheels.outputs.torchaudio_version }}"
TORCHVISION_VERSION: "${{ needs.build_pytorch_wheels.outputs.torchvision_version }}"
Expand All @@ -305,7 +281,7 @@ jobs:

- name: Configure AWS Credentials
if: always()
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::692859939525:role/therock-${{ inputs.release_type }}
Expand All @@ -330,8 +306,7 @@ jobs:
--include "torch-${TORCH_VERSION}-${CP_VERSION}-linux_x86_64.whl" \
--include "torchaudio-${TORCHAUDIO_VERSION}-${CP_VERSION}-linux_x86_64.whl" \
--include "torchvision-${TORCHVISION_VERSION}-${CP_VERSION}-linux_x86_64.whl" \
--include "triton-${TRITON_VERSION}-${CP_VERSION}-linux_x86_64.whl" \
--include "apex-${APEX_VERSION}-${CP_VERSION}-linux_x86_64.whl"
--include "triton-${TRITON_VERSION}-${CP_VERSION}-linux_x86_64.whl"

- name: (Re-)Generate Python package release index
if: ${{ env.upload == 'true' }}
Expand Down
Loading
Loading