-
Notifications
You must be signed in to change notification settings - Fork 293
Adding TheRock CI #74
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7969394
Adding initial TheRock build with prim
geomin12 8c5f68c
fixing requirements.txt
geomin12 bd2182b
try it all
geomin12 3f0a463
Ignore tests
geomin12 d9b3033
Adding prim test
geomin12 0b22a65
forgot the needs
geomin12 c16ac55
try this
geomin12 861184b
try
geomin12 9f292d6
Trying with rocprim yml
geomin12 955a870
Adding therock script
geomin12 64344a7
Adding Chris's updates
geomin12 135f912
Removing TheRock path to let ctest test proper
geomin12 715b18a
revert
geomin12 1cadf4b
try this build
geomin12 ad59450
whoops
geomin12 dfdb3e4
bucket and repo are found
geomin12 51142e9
try new path
geomin12 0342b05
empty commit
geomin12 ef91d4c
try just rocm-libs
geomin12 563d30e
empty commit
geomin12 0d0899e
PR comments
geomin12 0f58615
empty commit
geomin12 d50e7d2
Updating after TheRock is merged
geomin12 eb0ffe1
clean up
geomin12 a0594a9
Fixing
geomin12 a14c17d
test
geomin12 e3f65e6
removing prim
geomin12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| name: TheRock CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - ready_for_review | ||
| 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" | ||
|
geomin12 marked this conversation as resolved.
|
||
| ref: a742718b33993332131863885a621fceef6f9b48 | ||
|
|
||
| - 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 | ||
| if: ${{ needs.setup.outputs.jobs }} | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| uses: ROCm/TheRock/.github/workflows/build_linux_packages.yml@a742718b33993332131863885a621fceef6f9b48 | ||
| 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" | ||
|
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@a742718b33993332131863885a621fceef6f9b48 | ||
| with: | ||
| artifact_run_id: "${{ github.run_id }}" | ||
| amdgpu_families: "gfx94X-dcgpu" | ||
| test_runs_on: "linux-mi300-1gpu-ossci-rocm" | ||
| platform: "linux" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.