Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 28 additions & 8 deletions .github/workflows/build-rocm-examples-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ on:
required: true
type: string
rocm_version:
description: "Exact ROCm nightly version to install (e.g. 10.1.0a20260821). Empty = latest on the index."
description: "Exact ROCm version to install: a nightly (e.g. 10.1.0a20260821) or a release candidate (e.g. 10.2.0rc0). Empty = latest nightly on the index."
required: false
type: string
default: ""
wheels_url:
description: "Wheel index URL (from Quartz summary.linux.urls.wheels). Empty = default nightly index."
description: "Wheel index URL (from Quartz summary.linux.urls.wheels). Empty = default nightly index, or the release candidate index for an rc rocm_version."
required: false
type: string
default: ""
tarballs_url:
description: "Tarball base URL (from Quartz summary.linux.urls.tarballs). Empty = default nightly base."
description: "Tarball base URL (from Quartz summary.linux.urls.tarballs). Empty = default nightly base, or the release candidate base for an rc rocm_version."
required: false
type: string
default: ""
enable_ck:
description: "Build and test the Composable Kernel examples (ROCM_EXAMPLES_ENABLE_CK)."
required: false
type: boolean
default: false
env:
DEBIAN_FRONTEND: noninteractive

Expand Down Expand Up @@ -82,10 +87,14 @@ jobs:
PKG="${PKG}==${ROCM_VERSION}"
fi
# Prefer the index Quartz published for this build; fall back to the
# current default nightly index for non-Quartz callers.
# release candidate index for an rc version (e.g. 10.2.0rc0) and to the
# current default nightly index otherwise.
INDEX_URL="$WHEELS_URL"
if [ -z "$INDEX_URL" ]; then
INDEX_URL="https://nightly.repo.amd.com/rocm/whl-next/"
case "$ROCM_VERSION" in
*rc*) INDEX_URL="https://rc.repo.amd.com/rocm/core/whl-next/" ;;
*) INDEX_URL="https://nightly.repo.amd.com/rocm/whl-next/" ;;
esac
fi
pip install --no-cache-dir \
--index-url "$INDEX_URL" \
Expand Down Expand Up @@ -114,10 +123,14 @@ jobs:
TARBALLS_URL: ${{ inputs.tarballs_url }}
run: |
# Prefer the tarball base Quartz published for this build; fall back to
# the current default nightly base for non-Quartz callers.
# the release candidate base for an rc version (e.g. 10.2.0rc0) and to
# the current default nightly base otherwise.
TARBALL_BASE="$TARBALLS_URL"
if [ -z "$TARBALL_BASE" ]; then
TARBALL_BASE="https://nightly.repo.amd.com/rocm/core/tarball/"
case "$ROCM_VERSION" in
*rc*) TARBALL_BASE="https://rc.repo.amd.com/rocm/core/tarball/" ;;
*) TARBALL_BASE="https://nightly.repo.amd.com/rocm/core/tarball/" ;;
esac
fi
TARBALL_BASE="${TARBALL_BASE%/}/"
# Pin to the exact nightly when a caller (e.g. the Quartz workflow) requests one;
Expand Down Expand Up @@ -167,9 +180,16 @@ jobs:
echo "HIP_PATH=${ROCM_PATH}" >> $GITHUB_ENV
echo "HIP_PLATFORM=amd" >> $GITHUB_ENV
echo "ENABLE_OPENMP=ON" >> $GITHUB_ENV
echo "ENABLE_CK=OFF" >> $GITHUB_ENV
echo "HIPCC_COMPILE_FLAGS_APPEND=--offload-arch=${{ matrix.gpu_config.gpu_target }}" >> $GITHUB_ENV

- name: Set CK build flag
id: ck-flag
env:
CK_FLAG: ${{ inputs.enable_ck && 'ON' || 'OFF' }}
run: |
echo "ENABLE_CK=${CK_FLAG}" >> $GITHUB_ENV
echo "ROCM_EXAMPLES_ENABLE_CK=${CK_FLAG}"

- name: Environment status check
id: environment-status
if: always()
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/ci_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ on:
- sles-15.7
- almalinux-8
- stable_release
rocm_version:
description: "ROCm version to install: a nightly (e.g. 10.3.0a20261030) or a release candidate (e.g. 10.2.0rc0). Empty = latest nightly. Skips the stable_release image."
required: false
default: ""
type: string
enable_ck:
description: "Build and test the Composable Kernel examples"
required: false
default: false
type: boolean
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -72,7 +82,9 @@ jobs:
GPU_CONFIG: ${{ github.event.inputs.gpu_config }}
INSTALL_METHOD: ${{ github.event.inputs.install_method }}
DISTRO: ${{ github.event.inputs.distro }}
run: python3 .github/build_tools/configure_ci.py
ROCM_VERSION: ${{ github.event.inputs.rocm_version }}
# The stable_release image ships its own ROCm, so it cannot install a requested version.
run: python3 .github/build_tools/configure_ci.py ${ROCM_VERSION:+--exclude-preinstalled}

build:
needs: [setup]
Expand All @@ -86,3 +98,5 @@ jobs:
distro_map: ${{ needs.setup.outputs.distro_map }}
gpu_configs: ${{ needs.setup.outputs.gpu_configs }}
install_methods: ${{ needs.setup.outputs.install_methods }}
rocm_version: ${{ github.event.inputs.rocm_version }}
enable_ck: ${{ github.event.inputs.enable_ck == 'true' }}
16 changes: 15 additions & 1 deletion .github/workflows/ci_therock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ on:
- ubuntu-26.04
- sles-15.7
- almalinux-8
rocm_version:
description: "ROCm version to install: a nightly (e.g. 10.3.0a20261030) or a release candidate (e.g. 10.2.0rc0). Empty = latest nightly. Skips the stable_release image."
required: false
default: ""
type: string
enable_ck:
description: "Build and test the Composable Kernel examples"
required: false
default: false
type: boolean
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -96,7 +106,9 @@ jobs:
GPU_CONFIG: ${{ github.event.inputs.gpu_config || 'all' }}
INSTALL_METHOD: ${{ github.event.inputs.install_method || 'all' }}
DISTRO: ${{ github.event.inputs.distro || 'ubuntu-24.04' }}
run: python3 .github/build_tools/configure_ci.py
ROCM_VERSION: ${{ github.event.inputs.rocm_version }}
# The stable_release image ships its own ROCm, so it cannot install a requested version.
run: python3 .github/build_tools/configure_ci.py ${ROCM_VERSION:+--exclude-preinstalled}

build:
needs: [setup]
Expand All @@ -110,3 +122,5 @@ jobs:
distro_map: ${{ needs.setup.outputs.distro_map }}
gpu_configs: ${{ needs.setup.outputs.gpu_configs }}
install_methods: ${{ needs.setup.outputs.install_methods }}
rocm_version: ${{ github.event.inputs.rocm_version }}
enable_ck: ${{ github.event.inputs.enable_ck == 'true' }}
Loading