Symbol visibility of runtime #469
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: TypeART-CI-ext | |
| on: | |
| push: | |
| branches: [ master, devel ] | |
| pull_request: | |
| env: | |
| CXX: clang++ | |
| CC: clang | |
| jobs: | |
| run-testbench: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| preset: | |
| - name: release-counter | |
| - name: release-safeptr-counter | |
| - name: release-unsafe-counter | |
| platform: | |
| - { os: ubuntu-22.04, llvm-version: 14 } | |
| - { os: ubuntu-24.04, llvm-version: 18 } | |
| - { os: ubuntu-24.04, llvm-version: 19 } | |
| - { os: ubuntu-24.04, llvm-version: 20 } | |
| - { os: ubuntu-24.04, llvm-version: 21 } | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Checkout test-bench | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: tudasc/typeart-bench | |
| ssh-key: ${{ secrets.AUTH_SSH_CI_EXT }} | |
| path: test-bench | |
| - name: LLVM apt | |
| if: ${{ matrix.platform.llvm-version >= 19 }} | |
| run: | | |
| wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
| echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-${{ matrix.platform.llvm-version }} main" | sudo tee /etc/apt/sources.list.d/llvm-${{ matrix.platform.llvm-version }}.list | |
| - name: Update apt | |
| run: sudo apt-get update | |
| - name: Install LLVM | |
| run: sudo apt-get install libllvm${{ matrix.platform.llvm-version }} llvm-${{ matrix.platform.llvm-version }} llvm-${{ matrix.platform.llvm-version }}-dev | |
| - name: Install Clang | |
| run: sudo apt-get install clang-${{ matrix.platform.llvm-version }} clang-tidy-${{ matrix.platform.llvm-version }} | |
| - name: Install OpenMPI | |
| run: sudo apt-get install libopenmpi-dev openmpi-bin | |
| - name: Setup env | |
| run: | | |
| sudo ln -f -s /usr/bin/clang-${{ matrix.platform.llvm-version }} /usr/bin/clang | |
| sudo ln -f -s /usr/bin/clang++-${{ matrix.platform.llvm-version }} /usr/bin/clang++ | |
| echo "LLVM_CMAKE_DIR=/usr/lib/llvm-${{ matrix.platform.llvm-version }}/cmake" >> $GITHUB_ENV | |
| echo "EXTERNAL_LIT=/usr/lib/llvm-${{ matrix.platform.llvm-version >= 20 && 18 || matrix.platform.llvm-version }}/build/utils/lit/lit.py" >> $GITHUB_ENV | |
| - name: Configure TypeART | |
| run: cmake -B build --preset ${{ matrix.preset.name }} -DLLVM_DIR=${LLVM_CMAKE_DIR} -DLLVM_EXTERNAL_LIT=${EXTERNAL_LIT} | |
| - name: Build & install TypeART | |
| run: | | |
| cmake --build build --parallel 2 --target install | |
| echo "TYPEART_PATH=${GITHUB_WORKSPACE}/install/typeart" >> $GITHUB_ENV | |
| - name: Setup tests | |
| working-directory: test-bench | |
| run: cmake -B build -DLOG_PATH=${GITHUB_WORKSPACE}/test-bench/artifact-${{ matrix.platform.llvm-version }} -DUSE_WRAPPER=ON | |
| - name: Run lulesh | |
| working-directory: test-bench/build | |
| run: ctest -V -R lulesh -O lulesh2.0_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Run 104.milc | |
| working-directory: test-bench/build | |
| run: ctest -V -R 104.milc -O 104.milc_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Run 122.tachyon | |
| working-directory: test-bench/build | |
| run: ctest -V -R 122.tachyon -O 122.tachyon_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Run amg2013 | |
| working-directory: test-bench/build | |
| run: ctest -V -R amg2013 -O amg2013_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Run tealeaf | |
| working-directory: test-bench/build | |
| run: ctest -V -R tealeaf -O tealeaf_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Prepare artifact | |
| run: | | |
| mkdir -p artifact | |
| mv test-bench/build/*_build.log artifact | |
| mv test-bench/artifact-${{ matrix.platform.llvm-version }}/* artifact | |
| - name: Upload test-bench artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: typeart-ci-ext-${{ matrix.platform.llvm-version }}-${{ matrix.preset.name }} | |
| path: artifact | |
| run-AD-testbench: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| preset: | |
| - name: release-counter | |
| - name: release-unsafe-counter | |
| platform: | |
| - { os: ubuntu-22.04, llvm-version: 14 } | |
| - { os: ubuntu-24.04, llvm-version: 18 } | |
| - { os: ubuntu-24.04, llvm-version: 19 } | |
| - { os: ubuntu-24.04, llvm-version: 20 } | |
| - { os: ubuntu-24.04, llvm-version: 21 } | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Checkout AD test-bench | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: ahueck/typeart-ad-benchmarks | |
| ssh-key: ${{ secrets.AUTH_SSH_CI_EXT_AD }} | |
| ref: feat/ci | |
| path: ad-test-bench | |
| - name: LLVM apt | |
| if: ${{ matrix.platform.llvm-version >= 19 }} | |
| run: | | |
| wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
| echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-${{ matrix.platform.llvm-version }} main" | sudo tee /etc/apt/sources.list.d/llvm-${{ matrix.platform.llvm-version }}.list | |
| - name: Update apt | |
| run: sudo apt-get update | |
| - name: Install LLVM | |
| run: sudo apt-get install libllvm${{ matrix.platform.llvm-version }} llvm-${{ matrix.platform.llvm-version }} llvm-${{ matrix.platform.llvm-version }}-dev | |
| - name: Install Clang | |
| run: sudo apt-get install clang-${{ matrix.platform.llvm-version }} clang-tidy-${{ matrix.platform.llvm-version }} | |
| - name: Install OpenMPI | |
| run: sudo apt-get install libopenmpi-dev openmpi-bin | |
| - name: Setup env | |
| run: | | |
| sudo ln -f -s /usr/bin/clang-${{ matrix.platform.llvm-version }} /usr/bin/clang | |
| sudo ln -f -s /usr/bin/clang++-${{ matrix.platform.llvm-version }} /usr/bin/clang++ | |
| echo "LLVM_CMAKE_DIR=/usr/lib/llvm-${{ matrix.platform.llvm-version }}/cmake" >> $GITHUB_ENV | |
| echo "EXTERNAL_LIT=/usr/lib/llvm-${{ matrix.platform.llvm-version >= 20 && 18 || matrix.platform.llvm-version }}/build/utils/lit/lit.py" >> $GITHUB_ENV | |
| - name: Configure TypeART | |
| run: cmake -B build --preset ${{ matrix.preset.name }} -DLLVM_DIR=${LLVM_CMAKE_DIR} -DLLVM_EXTERNAL_LIT=${EXTERNAL_LIT} | |
| - name: Build & install TypeART | |
| run: | | |
| cmake --build build --parallel 2 --target install | |
| echo "TYPEART_PATH=${GITHUB_WORKSPACE}/install/typeart" >> $GITHUB_ENV | |
| - name: Setup AD tests | |
| working-directory: ad-test-bench | |
| run: cmake -B build -DLOG_PATH=${GITHUB_WORKSPACE}/ad-test-bench/artifact-${{ matrix.platform.llvm-version }} -DUSE_WRAPPER=ON | |
| - name: Run AD lulesh | |
| working-directory: ad-test-bench/build | |
| run: ctest -V -R lulesh -O ad-lulesh2.0_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Prepare artifact | |
| run: | | |
| mkdir -p artifact | |
| mv ad-test-bench/build/*_build.log artifact | |
| mv ad-test-bench/artifact-${{ matrix.platform.llvm-version }}/* artifact | |
| - name: Upload AD test-bench artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: typeart-ci-ext-ad-${{ matrix.platform.llvm-version }}-${{ matrix.preset.name }} | |
| path: artifact | |
| run-OMP-testbench: | |
| env: | |
| OMP_NUM_THREAD: 2 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| preset: | |
| - name: release-counter | |
| - name: release-safeptr-counter | |
| platform: | |
| - { os: ubuntu-22.04, llvm-version: 14 } | |
| - { os: ubuntu-24.04, llvm-version: 18 } | |
| - { os: ubuntu-24.04, llvm-version: 19 } | |
| - { os: ubuntu-24.04, llvm-version: 20 } | |
| - { os: ubuntu-24.04, llvm-version: 21 } | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Checkout OMP test-bench | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: tudasc/typeart-bench | |
| ssh-key: ${{ secrets.AUTH_SSH_CI_EXT }} | |
| ref: ci/omp | |
| path: omp-test-bench | |
| - name: LLVM apt | |
| if: ${{ matrix.platform.llvm-version >= 19 }} | |
| run: | | |
| wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
| echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-${{ matrix.platform.llvm-version }} main" | sudo tee /etc/apt/sources.list.d/llvm-${{ matrix.platform.llvm-version }}.list | |
| - name: Update apt | |
| run: sudo apt-get update | |
| - name: Install LLVM | |
| run: sudo apt-get install libllvm${{ matrix.platform.llvm-version }} llvm-${{ matrix.platform.llvm-version }} llvm-${{ matrix.platform.llvm-version }}-dev | |
| - name: Install Clang | |
| run: sudo apt-get install clang-${{ matrix.platform.llvm-version }} clang-tidy-${{ matrix.platform.llvm-version }} | |
| - name: Install OpenMPI | |
| run: sudo apt-get install libopenmpi-dev openmpi-bin | |
| - name: Install LLVM OpenMP runtime | |
| run: sudo apt-get install libomp-${{ matrix.platform.llvm-version }}-dev | |
| - name: Setup env | |
| run: | | |
| sudo ln -f -s /usr/bin/clang-${{ matrix.platform.llvm-version }} /usr/bin/clang | |
| sudo ln -f -s /usr/bin/clang++-${{ matrix.platform.llvm-version }} /usr/bin/clang++ | |
| echo "LLVM_CMAKE_DIR=/usr/lib/llvm-${{ matrix.platform.llvm-version }}/cmake" >> $GITHUB_ENV | |
| echo "EXTERNAL_LIT=/usr/lib/llvm-${{ matrix.platform.llvm-version >= 20 && 18 || matrix.platform.llvm-version }}/build/utils/lit/lit.py" >> $GITHUB_ENV | |
| - name: Configure TypeART | |
| run: cmake -B build --preset ${{ matrix.preset.name }} -DLLVM_DIR=${LLVM_CMAKE_DIR} -DLLVM_EXTERNAL_LIT=${EXTERNAL_LIT} | |
| - name: Build & install TypeART | |
| run: | | |
| cmake --build build --parallel 2 --target install | |
| echo "TYPEART_PATH=${GITHUB_WORKSPACE}/install/typeart" >> $GITHUB_ENV | |
| - name: Setup tests | |
| working-directory: omp-test-bench | |
| run: cmake -B build -DLOG_PATH=${GITHUB_WORKSPACE}/omp-test-bench/artifact-${{ matrix.platform.llvm-version }} -DUSE_WRAPPER=ON | |
| - name: Run lulesh | |
| working-directory: omp-test-bench/build | |
| run: ctest -V -R lulesh -O lulesh2.0_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Run amg2013 | |
| working-directory: omp-test-bench/build | |
| run: ctest -V -R amg2013 -O amg2013_${{ matrix.platform.llvm-version }}_build.log | |
| - name: Prepare artifact | |
| run: | | |
| mkdir -p artifact | |
| mv omp-test-bench/build/*_build.log artifact | |
| mv omp-test-bench/artifact-${{ matrix.platform.llvm-version }}/* artifact | |
| - name: Upload omp-test-bench artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: typeart-ci-ext-omp-${{ matrix.platform.llvm-version }}-${{ matrix.preset.name }} | |
| path: artifact |