Skip to content

BenchMarking for Codegen and CodegenNoGrad() #245

BenchMarking for Codegen and CodegenNoGrad()

BenchMarking for Codegen and CodegenNoGrad() #245

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# Python doesn't matter, conda had been built only with 3.8.5
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} (Miniconda)
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: "Init conda"
shell: bash -l {0}
run: |
conda init bash
- name: Conda install dependencies
shell: bash -l {0}
run: |
conda create -n root-nightly -y -c https://root.cern/download/conda-nightly/latest -c conda-forge root-nightly cmake pytest pytest-benchmark pytest-csv numpy numba
- name: Configure and build
shell: bash -l {0}
run: |
conda activate root-nightly
mkdir -p build && cd build
# The conda nightlies are not built with a cutting-edge ROOT version that the RooFit benchmarks require
cmake -Dcuda=OFF -Droofit=OFF ..
cmake --build .
- name: Run benchmarks
shell: bash -l {0}
run: |
conda activate root-nightly
export PYTHONHOME=$CONDA
export RB_TEMP_FS=.
cd build
ctest -V