Skip to content

Commit

Permalink
Add auto benchmark for flowvision (#7806)
Browse files Browse the repository at this point in the history
* update yml

* update workflow

* add resnet50
  • Loading branch information
jackalcooper authored Apr 10, 2022
1 parent a43cbbb commit 2152739
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Checkout Oneflow-Inc/oneflow
if: ${{ github.event.inputs.oneflow-ref == '' }}
uses: actions/checkout@v2
- uses: Oneflow-Inc/get-oneflow@support-cuda-115
- uses: Oneflow-Inc/get-oneflow@support-auto-benchmark
name: Build manylinux
id: build-cuda
with:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/on_merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Update Benchmark History
on:
pull_request:
types:
- closed
branches:
- master

env:
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }}

jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: Oneflow-Inc/get-oneflow/update-benchmark-history@support-auto-benchmark
name: Update benchmark history
timeout-minutes: 10
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: Oneflow-Inc/get-oneflow/cache-complete/matrix/build@support-cuda-115
- uses: Oneflow-Inc/get-oneflow/cache-complete/matrix/build@support-auto-benchmark
name: find cache
id: find-cache
timeout-minutes: 5
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
python3 -m pip install -U pip setuptools wheel --user
python3 -m pip install oss2 --user
- uses: actions/checkout@v2
- uses: Oneflow-Inc/get-oneflow@support-cuda-115
- uses: Oneflow-Inc/get-oneflow@support-auto-benchmark
name: Build ${{ matrix.entry }}
if: ${{ matrix.entry !='cpu' }}
with:
Expand All @@ -98,7 +98,7 @@ jobs:
3.8
3.9
3.10
- uses: Oneflow-Inc/get-oneflow@support-cuda-115
- uses: Oneflow-Inc/get-oneflow@support-auto-benchmark
name: Build ${{ matrix.entry }}
if: ${{ matrix.entry =='cpu' }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ jobs:
repository: Oneflow-Inc/conda-env
ref: 30a7f00eb48ee9009d85a848e720823e5054c66b
path: conda-env
- uses: Oneflow-Inc/get-oneflow@support-cuda-115
- uses: Oneflow-Inc/get-oneflow@support-auto-benchmark
name: Build with gcc7
if: ${{ matrix.build-type == 'gcc7'}}
with:
Expand All @@ -250,7 +250,7 @@ jobs:
oneflow-build-env: conda
conda-env-file: conda-env/dev/gcc7/environment-v2.yml
conda-env-name: oneflow-dev-gcc7-v2
- uses: Oneflow-Inc/get-oneflow@support-cuda-115
- uses: Oneflow-Inc/get-oneflow@support-auto-benchmark
name: Build with clang10
if: ${{ matrix.build-type == 'clang10'}}
with:
Expand Down
Loading

0 comments on commit 2152739

Please sign in to comment.