Small updates for workflow-dispatch triggered nightly perf (#10902)
* Small fix for workflow-dispatch triggerd nightly perf * Small fix
This commit is contained in:
parent
1a8a93d5e0
commit
94b4e96fa6
1 changed files with 5 additions and 5 deletions
10
.github/workflows/llm_performance_tests.yml
vendored
10
.github/workflows/llm_performance_tests.yml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
|||
OMP_NUM_THREADS: 16
|
||||
THREAD_NUM: 16
|
||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
||||
CSV_SAVE_PATH: ${{ github.event.schedule && '/mnt/disk1/nightly_perf_gpu/' || '/mnt/disk1/pr_perf_gpu/' }}
|
||||
CSV_SAVE_PATH: ${{ (github.event.schedule || github.event_name == 'workflow_dispatch') && '/mnt/disk1/nightly_perf_gpu/' || '/mnt/disk1/pr_perf_gpu/' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
|
||||
|
|
@ -153,7 +153,7 @@ jobs:
|
|||
python ../../../test/benchmark/check_results.py -c test1 -y ../../../test/benchmark/arc-perf-test.yaml
|
||||
python ../../../test/benchmark/check_results.py -c test2 -y ../../../test/benchmark/arc-perf-transformers-434.yaml
|
||||
find . -name "*test*.csv" -delete
|
||||
if [ ${{ github.event.schedule}} || [ ${{ github.event_name }} == "workflow_dispatch" ]; then
|
||||
if [ ${{ github.event.schedule}} || ${{ github.event_name }} == "workflow_dispatch" ]; then
|
||||
curl -T ./*.csv ${LLM_FTP_URL}/llm/nightly_perf/gpu/
|
||||
fi
|
||||
|
||||
|
|
@ -245,7 +245,7 @@ jobs:
|
|||
runs-on: [self-hosted, "${{ matrix.os }}", llm, perf-core, "${{ matrix.platform }}"]
|
||||
env:
|
||||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
|
||||
CSV_SAVE_PATH: ${{ github.event.schedule && 'D:/action-runners/nightly_perf_core_' || 'D:/action-runners/pr_perf_core_' }}${{ matrix.platform }}/
|
||||
CSV_SAVE_PATH: ${{ (github.event.schedule || github.event_name == 'workflow_dispatch') && 'D:/action-runners/nightly_perf_core_' || 'D:/action-runners/pr_perf_core_' }}${{ matrix.platform }}/
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ jobs:
|
|||
python -m pip install pandas==1.5.3
|
||||
python csv_to_html.py -f $CSV_SAVE_PATH
|
||||
cd ../../dev/benchmark/all-in-one/
|
||||
if [ ${{ github.event.schedule}} || [ ${{ github.event_name }} == "workflow_dispatch" ]; then
|
||||
if [ ${{ github.event.schedule}} || ${{ github.event_name }} == "workflow_dispatch" ]; then
|
||||
curl -T ./*.csv ${LLM_FTP_URL}/llm/nightly_perf/core_${{ matrix.platform }}/
|
||||
fi
|
||||
|
||||
|
|
@ -391,7 +391,7 @@ jobs:
|
|||
- name: Set directory envs & and fix generated csv date name
|
||||
shell: bash
|
||||
run: |
|
||||
if [ ${{ github.event_name }} == 'schedule' ]; then
|
||||
if [ ${{ github.event_name }} == "schedule" || ${{ github.event_name }} == "workflow_dispatch" ]; then
|
||||
echo "CSV_SAVE_PATH=${CSV_NIGHTLY_PATH}" >> "$GITHUB_ENV"
|
||||
else
|
||||
echo "CSV_SAVE_PATH=${CSV_PR_PATH}" >> "$GITHUB_ENV"
|
||||
|
|
|
|||
Loading…
Reference in a new issue