|
| 1 | +# Runs tests on multi-numa machine |
| 2 | +name: MultiNuma |
| 3 | + |
| 4 | +on: [workflow_call] |
| 5 | + |
| 6 | +permissions: |
| 7 | + contents: read |
| 8 | + |
| 9 | +jobs: |
| 10 | + multi_numa: |
| 11 | + name: ${{matrix.os}} |
| 12 | + # run only on upstream; forks will not have the HW |
| 13 | + if: github.repository == 'oneapi-src/unified-memory-framework' |
| 14 | + |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + os: [ubuntu-22.04, RHEL-9] |
| 18 | + build_type: [Release] |
| 19 | + compiler: [{c: gcc, cxx: g++}] |
| 20 | + shared_library: ['OFF'] |
| 21 | + runs-on: ["DSS-MULTI-NUMA", "DSS-${{matrix.os}}"] |
| 22 | + |
| 23 | + steps: |
| 24 | + - name: Checkout |
| 25 | + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
| 26 | + |
| 27 | + - name: Get information about platform |
| 28 | + run: .github/scripts/get_system_info.sh |
| 29 | + |
| 30 | + - name: Configure build |
| 31 | + run: > |
| 32 | + cmake |
| 33 | + -B ${{github.workspace}}/build |
| 34 | + -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
| 35 | + -DCMAKE_C_COMPILER=${{matrix.compiler.c}} |
| 36 | + -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} |
| 37 | + -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} |
| 38 | + -DUMF_BUILD_BENCHMARKS=OFF |
| 39 | + -DUMF_BUILD_TESTS=ON |
| 40 | + -DUMF_DEVELOPER_MODE=ON |
| 41 | + -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON |
| 42 | + -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON |
| 43 | + -DUMF_BUILD_LIBUMF_POOL_SCALABLE=ON |
| 44 | + -DUMF_ENABLE_POOL_TRACKING=ON |
| 45 | +
|
| 46 | + - name: Build UMF |
| 47 | + run: cmake --build ${{github.workspace}}/build -j $(nproc) |
| 48 | + |
| 49 | + - name: Run tests |
| 50 | + working-directory: ${{github.workspace}}/build |
| 51 | + run: ctest --output-on-failure --test-dir test |
0 commit comments