Add inactive c++ attribute (#1363) #5586
This file contains 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: Bitcode loading CI | |
on: [push] | |
jobs: | |
build: | |
name: Bitcode loading CI LLVM ${{ matrix.llvm }} ${{ matrix.build }} ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
llvm: ["9", "10", "11", "12", "13"] #, "14"] | |
build: ["Release"] # "RelWithDebInfo" | |
os: [ubuntu-20.04] | |
timeout-minutes: 30 | |
steps: | |
- name: add llvm | |
run: | | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - | |
sudo apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-${{ matrix.llvm }} main" || true | |
sudo apt-get install -y autoconf cmake gcc g++ libtool gfortran llvm-${{ matrix.llvm }}-dev libomp-${{ matrix.llvm }}-dev clang-${{ matrix.llvm }} libclang-${{ matrix.llvm }}-dev libeigen3-dev libboost-dev | |
sudo python3 -m pip install --upgrade pip setuptools lit | |
if [[ '${{ matrix.llvm }}' == '13' ]]; then | |
sudo sed -i 's/add_executable(llvm-omp-device-info IMPORTED)//g' /usr/lib/llvm-${{matrix.llvm}}/lib/cmake/llvm/LLVMExports*.cmake | |
sudo sed -i 's/llvm-omp-device-info//g' /usr/lib/llvm-${{matrix.llvm}}/lib/cmake/llvm/LLVMExports*.cmake | |
fi | |
- uses: actions/checkout@v3 | |
- name: mkdir | |
run: cd enzyme && rm -rf build && mkdir build | |
- name: cmake | |
run: | | |
cd enzyme/build | |
cmake .. -DLLVM_EXTERNAL_LIT=`which lit` -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DLLVM_DIR=/usr/lib/llvm-${{ matrix.llvm }}/lib/cmake/llvm | |
- name: make check-bcpass | |
run: cd enzyme/build && make -j `nproc` check-bcpass |