chore: select benchmark name in benchmark workflow

This commit is contained in:
Quentin Bourgerie
2023-02-17 15:06:15 +01:00
parent 0307227431
commit 8fab9a4038

View File

@@ -16,6 +16,14 @@ on:
options:
- cpu
- gpu
benchmark_name:
description: 'Benchmark name'
required: true
default: 'standard'
type: choice
options:
- standard
- application
ec2-instance-type:
description: 'EC2 instance type'
required: true
@@ -133,6 +141,11 @@ jobs:
echo "CUDAHOSTCXX=/usr/bin/g++-${{ env.GCC_VERSION }}" >> "${GITHUB_ENV}"
echo "CUDACXX=$CUDA_PATH/bin/nvcc" >> "${GITHUB_ENV}"
- name: Setup environment variable for benchmark target
if: ${{ env.BENCHMARK_NAME != 'standard' }}
run |
echo "BENCHMARK_TARGET=${{ env.BENCHMARK_TARGET }}-${{ env.BENCHMARK_NAME }}" >> "${GITHUB_ENV}"
- name: Install rust
uses: actions-rs/toolchain@v1
with: