Skip to content
Merged
Show file tree
Hide file tree
Changes from 21 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
2 changes: 1 addition & 1 deletion .github/repos-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"category": "projects",
"auto_subtree_pull": false,
"auto_subtree_push": true,
"enable_pr_fanout": false
"enable_pr_fanout": true
Comment thread
geomin12 marked this conversation as resolved.
Outdated
},
{
"name": "rocrand",
Expand Down
120 changes: 120 additions & 0 deletions .github/workflows/therock-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: TheRock CI

on:
push:
branches:
# Remove later.
- users/geomin12/therock-ci
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
Comment thread
jayhawk-commits marked this conversation as resolved.
branches:
Comment thread
jayhawk-commits marked this conversation as resolved.
Outdated
# Remove later.
- users/geomin12/therock-ci
- 'develop'
- 'staging'
- 'main'
paths-ignore:
- "docs/**"
- "*.md"

permissions:
contents: read

concurrency:
# A PR number if a pull request and otherwise the commit hash. This cancels
# queued and in-progress runs for the same PR (presubmit) or commit
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
setup:
name: "Setup"
runs-on: ubuntu-24.04
outputs:
jobs: ${{ steps.jobs.outputs.jobs }}
steps:
# Checkout the mono-repo which includes the PR.
- name: Checkout rocm-libraries Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: rocm-libraries

- name: Checkout TheRock Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: "ROCm/TheRock"
path: "TheRock"
Comment thread
geomin12 marked this conversation as resolved.
ref: users/geomin12/monorepo-therock-test

- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install pydantic requests

# # For our "rocPRIM" MVP, there are no patches to apply. This will be un-commented and used later!
# - name: Patch monorepo
# run: |
# python TheRock/build_tools/github_actions/patch_monorepo.py \
# --repo rocm-libraries

- name: Detect changed subtrees
id: detect
if: github.event_name == 'pull_request'
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
python rocm-libraries/.github/scripts/pr_detect_changed_subtrees.py \
--repo "${{ github.repository }}" \
--pr "${{ github.event.pull_request.number }}" \
--config "rocm-libraries/.github/repos-config.json"

- name: Determine jobs to run
id: jobs
if: steps.detect.outputs.subtrees
env:
SUBTREES: ${{ steps.detect.outputs.subtrees }}
run: |
python ./TheRock/build_tools/github_actions/monorepo_configure_ci.py

therock-build-linux:
name: Build Linux Packages
needs: setup
# Commented out for testing
# if: ${{ needs.setup.outputs.jobs != '[]' }}
Comment thread
geomin12 marked this conversation as resolved.
Outdated
permissions:
contents: read
id-token: write
uses: ROCm/TheRock/.github/workflows/build_linux_packages.yml@users/geomin12/monorepo-therock-test
with:
amdgpu_families: "gfx94X-dcgpu"
expect_failure: false
extra_cmake_options: "-DTHEROCK_USE_EXTERNAL_ROCM_LIBRARIES=ON -DTHEROCK_ROCM_LIBRARIES_SOURCE_DIR=rocm-libraries -DTHEROCK_ENABLE_PRIM=ON -DTHEROCK_ENABLE_ALL=OFF"
Comment thread
geomin12 marked this conversation as resolved.

therock-test-linux:
name: "rocPRIM math-lib test"
needs: therock-build-linux
uses: ROCm/TheRock/.github/workflows/test_rocprim.yml@users/geomin12/monorepo-therock-test
with:
artifact_run_id: "${{ github.run_id }}"
amdgpu_families: "gfx94X-dcgpu"
test_runs_on: "linux-mi300-1gpu-ossci-rocm"
platform: "linux"
Loading