From 5788a126b8fbd0f0ebc830d1e49b3fd517ed696f Mon Sep 17 00:00:00 2001 From: Alexander Kalistratov Date: Fri, 3 Nov 2023 15:17:47 +0100 Subject: [PATCH] Add precision to workflow matrix --- .github/workflows/build_and_run.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_and_run.yml b/.github/workflows/build_and_run.yml index cf99d555..96c9704a 100644 --- a/.github/workflows/build_and_run.yml +++ b/.github/workflows/build_and_run.yml @@ -23,6 +23,7 @@ jobs: python: ["3.9", "3.10", "3.11"] sycl: ["sycl","no-sycl"] install: ["pip", "setup.py"] + precision: ["single", "double"] exclude: # setuptools<64 + scikit-build produce 'UNKOWN' package name for # python 3.11. Could not find exact reference for that issue. @@ -165,14 +166,8 @@ jobs: &$script_path echo "OCL_ICD_FILENAMES=$env:CONDA_PREFIX\Library\lib\intelocl64.dll" >> $env:GITHUB_ENV - - name: Run benchmarks fp64 - run: dpbench -i ${{env.WORKLOADS}} run -r2 --no-print-results --precision=double || exit 1 + - name: Run benchmarks + run: dpbench -i ${{env.WORKLOADS}} run -r2 --no-print-results --precision=${{matrix.precision}} || exit 1 - - name: Generate report fp64 - run: dpbench -i ${{env.WORKLOADS}} report || exit 1 - - - name: Run benchmarks fp32 - run: dpbench -i ${{env.WORKLOADS}} run -r2 --no-print-results --precision=single || exit 1 - - - name: Generate report fp32 + - name: Generate report run: dpbench -i ${{env.WORKLOADS}} report || exit 1