forked from ROCm/AMDMIGraphX
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0f70b5
commit 4972ca1
Showing
1 changed file
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,94 @@ | ||
name: Unreleased ROCm MIGraphX Performance Test | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
unreleased_rocm: | ||
description: Unreleased ROCm version | ||
required: true | ||
branch_name: | ||
description: Branch to use for building base ROCm image | ||
required: true | ||
default: 'develop' | ||
rocm_release: | ||
description: Use tuned MIOpen database for ROCm release | ||
required: true | ||
default: '6.0.2' | ||
performance_reports_repo: | ||
description: Repository where performance reports are stored | ||
required: true | ||
default: 'ROCm/migraphx-reports' | ||
benchmark_utils_repo: | ||
description: Repository where benchmark utils are stored | ||
required: true | ||
default: "ROCm/migraphx-benchmark-utils" | ||
organization: | ||
description: Organization based on which location of files will be different | ||
required: true | ||
default: "AMD" | ||
result_number: | ||
description: Last N results | ||
required: true | ||
default: '10' | ||
model_timeout: | ||
description: If model in performance test script passes this threshold, it will be skipped | ||
required: true | ||
default: '30m' | ||
flags: | ||
description: -m for Max value; -s for Std dev; -r for Threshold file | ||
required: true | ||
default: '-r' | ||
|
||
concurrency: | ||
group: "perftest-${{ github.head_ref || github.base_ref || 'schedule' }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
get_config: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
rocm_version: ${{ steps.read_config.outputs.rocm_version }} | ||
utils_repo: ${{ steps.read_config.outputs.utils_repo }} | ||
reports_repo: ${{ steps.read_config.outputs.reports_repo }} | ||
repo_org: ${{ steps.read_config.outputs.repo_org }} | ||
perf_number: ${{ steps.read_config.outputs.perf_number }} | ||
perf_flag: ${{ steps.read_config.outputs.perf_flag }} | ||
perf_timeout: ${{ steps.read_config.outputs.perf_timeout }} | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
- name: read_config | ||
id: read_config | ||
run: | | ||
ROCM_VERSION=$(grep 'ROCM_VERSION' .github/workflows/config.md | cut -d "'" -f2) | ||
BENCHMARK_UTILS_REPO=$(grep 'BENCHMARK_UTILS_REPO' .github/workflows/config.md | cut -d "'" -f2) | ||
PERFORMANCE_REPORTS_REPO=$(grep 'PERFORMANCE_REPORTS_REPO' .github/workflows/config.md | cut -d "'" -f2) | ||
ORGANIZATION_REPO=$(grep 'ORGANIZATION_REPO' .github/workflows/config.md | cut -d "'" -f2) | ||
RESULTS_TO_COMPARE=$(grep 'RESULTS_TO_COMPARE' .github/workflows/config.md | cut -d "'" -f2) | ||
CALCULATION_METHOD_FLAG=$(grep 'CALCULATION_METHOD_FLAG' .github/workflows/config.md | cut -d "'" -f2) | ||
PERFORMANCE_TEST_TIMEOUT=$(grep 'PERFORMANCE_TEST_TIMEOUT' .github/workflows/config.md | cut -d "'" -f2) | ||
echo "rocm_version=$ROCM_VERSION" >> $GITHUB_OUTPUT | ||
echo "utils_repo=$BENCHMARK_UTILS_REPO" >> $GITHUB_OUTPUT | ||
echo "reports_repo=$PERFORMANCE_REPORTS_REPO" >> $GITHUB_OUTPUT | ||
echo "repo_org=$ORGANIZATION_REPO" >> $GITHUB_OUTPUT | ||
echo "perf_number=$RESULTS_TO_COMPARE" >> $GITHUB_OUTPUT | ||
echo "perf_flag=$CALCULATION_METHOD_FLAG" >> $GITHUB_OUTPUT | ||
echo "perf_timeout=$PERFORMANCE_TEST_TIMEOUT" >> $GITHUB_OUTPUT | ||
call_reusable: | ||
needs: get_config | ||
uses: ROCm/migraphx-benchmark/.github/workflows/unreleased_rocm.yml@main | ||
with: | ||
unreleased_rocm: ${{ github.event.inputs.unreleased_rocm || '' }} | ||
branch_name: ${{ github.event.inputs.branch_name || 'develop' }} | ||
rocm_release: ${{ github.event.inputs.rocm_release || needs.get_config.outputs.rocm_version }} | ||
benchmark_utils_repo: ${{ github.event.inputs.benchmark_utils_repo || needs.get_config.outputs.utils_repo }} | ||
performance_reports_repo: ${{ github.event.inputs.performance_reports_repo || needs.get_config.outputs.reports_repo }} | ||
organization: ${{ github.event.inputs.organization || needs.get_config.outputs.repo_org }} | ||
result_number: ${{ github.event.inputs.result_number || needs.get_config.outputs.perf_number }} | ||
flags: ${{ github.event.inputs.flags || needs.get_config.outputs.perf_flag }} | ||
model_timeout: ${{ github.event.inputs.model_timeout || needs.get_config.outputs.perf_timeout }} | ||
secrets: | ||
gh_token: ${{ secrets.MIGRAPHX_BOT_TOKEN }} | ||
mail_user: ${{ secrets.MAIL_USERNAME }} | ||
mail_pass: ${{ secrets.MAIL_PASSWORD }} |