Specify repository in codecov action #1056
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run benchmark and profiling | |
| # The workflow gets triggered by pushes and pull requests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| # checks out the code in the repository | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: Install dependencies | |
| run: | | |
| pip install matplotlib | |
| sudo apt install -y libboost-dev | |
| sudo apt install -y libtbb-dev | |
| sudo apt install libomp-dev | |
| - name: Compile and run benchmark | |
| working-directory: ${{ github.workspace }}/benchmark/dataset_size | |
| run: | | |
| cmake -B build -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build -- -j3 | |
| echo "Running serial backend" | |
| ./build/serial.out 10 18 | |
| echo "Running TBB backend" | |
| ./build/tbb.out 10 18 | |
| echo "Running OpenMP backend" | |
| ./build/openmp.out 10 18 | |
| - name: Compile and run profiling | |
| working-directory: ${{ github.workspace }}/benchmark/profiling | |
| run: | | |
| cmake -B build/Debug -DCMAKE_BUILD_TYPE=Debug | |
| cmake -B build/Release -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build/Debug -- -j3 | |
| cmake --build build/Release -- -j3 | |
| ./build/Debug/serial.out ../../data/data_32768.csv | |
| ./build/Release/serial.out ../../data/data_32768.csv | |
| # gprof ./build/Debug/serial.out ../../data/data_32768.csv | |
| # gprof ./build/Release/serial.out ../../data/data_32768.csv | |
| # TODO: this works on local but not on github actions | |
| # - name: Check cache misses with perf | |
| # working-directory: ${{ github.workspace }}/benchmark/profiling | |
| # run: | | |
| # perf stat -B -e cache-misses,cycles,instructions,branches ./build/Debug/serial.out ../../data/data_32768.csv | |
| # perf stat -B -e cache-misses,cycles,instructions,branches ./build/Release/serial.out ../../data/data_32768.csv | |