Add HPX backend infrastructure with lazy initialization #28
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
| # Workflow to configure with cmake and build with gcc | |
| name: Build with gcc-13 | |
| on: | |
| push: | |
| branches: [ master, sc_release ] | |
| workflow_dispatch: | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout NWgr | |
| uses: actions/checkout@v4 | |
| with: | |
| path: NWgr | |
| - name: Install dependencies | |
| run: | | |
| # Install Intel oneAPI TBB | |
| wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ | |
| | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | |
| echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \ | |
| | sudo tee /etc/apt/sources.list.d/oneAPI.list | |
| sudo apt-get update | |
| DEBIAN_FRONTEND=noninteractive sudo apt-get -y install intel-oneapi-tbb-devel | |
| # Install gcc-13 | |
| sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
| DEBIAN_FRONTEND=noninteractive sudo apt-get -y install gcc-13 g++-13 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 90 --slave /usr/bin/g++ g++ /usr/bin/g++-13 | |
| sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 | |
| sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 | |
| - name: cmake | |
| run: | | |
| cd NWgr | |
| mkdir build | |
| cd build | |
| export TBBROOT=/opt/intel/oneapi/tbb/latest | |
| cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_COMPILER=g++-13 -DNWGRAPH_BUILD_DOCS=OFF -DNWGRAPH_BUILD_TESTS=ON | |
| - name: make | |
| run: | | |
| cd NWgr/build | |
| # Limit parallelism to avoid OOM on GitHub runners (7GB RAM) | |
| make -j4 -k | |
| - name: run_test | |
| run: | | |
| cd NWgr/build | |
| make test |