mirror of
https://github.com/uxlfoundation/oneDNN.git
synced 2025-10-20 10:03:50 +08:00
ci: aarch64: Fix permission issues and input data handling (#4125)
This commit is contained in:
5
.github/workflows/aarch64-acl.yml
vendored
5
.github/workflows/aarch64-acl.yml
vendored
@ -28,8 +28,9 @@ on:
|
|||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Declare default permissions as read only.
|
permissions:
|
||||||
permissions: read-all
|
contents: read
|
||||||
|
id-token: none
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Cache is built sequentially to avoid cache-hit race conditions
|
# Cache is built sequentially to avoid cache-hit race conditions
|
||||||
|
6
.github/workflows/nightly-aarch64.yml
vendored
6
.github/workflows/nightly-aarch64.yml
vendored
@ -32,13 +32,15 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
# Declare default permissions as read only.
|
# Declare default permissions as read only.
|
||||||
permissions: write-all
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-acl-cache:
|
build-acl-cache:
|
||||||
uses: ./.github/workflows/aarch64-acl.yml
|
uses: ./.github/workflows/aarch64-acl.yml
|
||||||
|
|
||||||
test-performance:
|
test-performance:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
uses: ./.github/workflows/performance-aarch64.yml
|
uses: ./.github/workflows/performance-aarch64.yml
|
||||||
|
|
||||||
build-and-test:
|
build-and-test:
|
||||||
@ -52,6 +54,8 @@ jobs:
|
|||||||
|
|
||||||
name: ${{ matrix.config.name }}, ${{ matrix.config.toolset }}, ${{ matrix.config.threading }}, ${{ matrix.config.build }}
|
name: ${{ matrix.config.name }}, ${{ matrix.config.toolset }}, ${{ matrix.config.threading }}, ${{ matrix.config.build }}
|
||||||
runs-on: ${{ matrix.config.label }}
|
runs-on: ${{ matrix.config.label }}
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout oneDNN
|
- name: Checkout oneDNN
|
||||||
|
19
.github/workflows/performance-aarch64.yml
vendored
19
.github/workflows/performance-aarch64.yml
vendored
@ -52,8 +52,10 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.ref }}-performance
|
group: ${{ github.workflow }}-${{ github.ref }}-performance
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
# Declare default permissions as read only.
|
# Setting this to read-all causes issues with the id-tokens permission
|
||||||
permissions: write-all
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: none
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-acl-base:
|
build-acl-base:
|
||||||
@ -76,8 +78,9 @@ jobs:
|
|||||||
|
|
||||||
name: ${{ matrix.config.name }}, ${{ matrix.config.toolset }}, ${{ matrix.config.threading }}, ${{ matrix.config.build }}
|
name: ${{ matrix.config.name }}, ${{ matrix.config.toolset }}, ${{ matrix.config.threading }}, ${{ matrix.config.build }}
|
||||||
runs-on: ${{ matrix.config.label }}
|
runs-on: ${{ matrix.config.label }}
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout oneDNN
|
- name: Checkout oneDNN
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
with:
|
with:
|
||||||
@ -222,8 +225,10 @@ jobs:
|
|||||||
if: ${{ inputs.benchdnn_command == '' }}
|
if: ${{ inputs.benchdnn_command == '' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
OMP_NUM_THREADS=${{ inputs.num_threads || 16 }} bash ${{ github.workspace }}/oneDNN/.github/automation/performance/bench_nightly_performance.sh ${{ github.workspace }}/oneDNN_base/build/tests/benchdnn/benchdnn ${{ github.workspace }}/oneDNN_new/build/tests/benchdnn/benchdnn base.txt new.txt
|
bash ${{ github.workspace }}/oneDNN/.github/automation/performance/bench_nightly_performance.sh ${{ github.workspace }}/oneDNN_base/build/tests/benchdnn/benchdnn ${{ github.workspace }}/oneDNN_new/build/tests/benchdnn/benchdnn base.txt new.txt
|
||||||
python ${{ github.workspace }}/oneDNN/.github/automation/performance/benchdnn_comparison.py base.txt new.txt --out-file perf_table.md
|
python ${{ github.workspace }}/oneDNN/.github/automation/performance/benchdnn_comparison.py base.txt new.txt --out-file perf_table.md
|
||||||
|
env:
|
||||||
|
OMP_NUM_THREADS: ${{ inputs.num_threads || 16 }}
|
||||||
|
|
||||||
- name: Update wiki
|
- name: Update wiki
|
||||||
if: ${{ (success() || failure()) && inputs.benchdnn_command == '' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ryo-not-rio/wiki') }}
|
if: ${{ (success() || failure()) && inputs.benchdnn_command == '' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ryo-not-rio/wiki') }}
|
||||||
@ -237,11 +242,13 @@ jobs:
|
|||||||
if: ${{ inputs.benchdnn_command != '' }}
|
if: ${{ inputs.benchdnn_command != '' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
OMP_NUM_THREADS=${{ inputs.num_threads || 16 }} \
|
|
||||||
bash ${{ github.workspace }}/oneDNN/.github/automation/performance/run_benchdnn_compare.sh \
|
bash ${{ github.workspace }}/oneDNN/.github/automation/performance/run_benchdnn_compare.sh \
|
||||||
"${{ github.workspace }}/oneDNN_base/build/tests/benchdnn/benchdnn" \
|
"${{ github.workspace }}/oneDNN_base/build/tests/benchdnn/benchdnn" \
|
||||||
"${{ github.workspace }}/oneDNN_new/build/tests/benchdnn/benchdnn" \
|
"${{ github.workspace }}/oneDNN_new/build/tests/benchdnn/benchdnn" \
|
||||||
base.txt new.txt ${{ inputs.benchdnn_command }}
|
base.txt new.txt "$BENCHDNN_COMMAND"
|
||||||
|
env:
|
||||||
|
OMP_NUM_THREADS: ${{ inputs.num_threads || 16 }}
|
||||||
|
BENCHDNN_COMMAND: ${{ inputs.benchdnn_command }}
|
||||||
|
|
||||||
- name: Print speed comparisons
|
- name: Print speed comparisons
|
||||||
if: ${{ (success() || failure()) && inputs.benchdnn_command != '' }}
|
if: ${{ (success() || failure()) && inputs.benchdnn_command != '' }}
|
||||||
|
Reference in New Issue
Block a user