Skip to content

Commit

Permalink
Add workflow to test openMP SIMD
Browse files Browse the repository at this point in the history
  • Loading branch information
imciner2 committed May 9, 2024
1 parent c7d4912 commit 871eaff
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/openmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: OpenMP SIMD Build - FLOAT=${{ matrix.float }},

on: [push, pull_request]

env:
# The CMake build type
BUILD_TYPE: Release

jobs:
build:
strategy:
fail-fast: false
matrix:
float: [ON, OFF]

runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Setup Environment
run: cmake -E make_directory ${{ runner.workspace }}/build

- name: Configure
shell: bash
working-directory: ${{ runner.workspace }}/build
run: cmake --warn-uninitialized -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DQDLDL_UNITTESTS=ON -DQDLDL_FLOAT=${{ matrix.float }} -DCOVERAGE=OFF -DQDLDL_ENABLE_OPENMP_SIMD=ON $GITHUB_WORKSPACE

- name: Build
shell: bash
working-directory: ${{ runner.workspace }}/build
run: cmake --build . --config $BUILD_TYPE

- name: Run tests
shell: bash
working-directory: ${{ runner.workspace }}/build
run: ctest -C $BUILD_TYPE

0 comments on commit 871eaff

Please sign in to comment.