Skip to content

Merge pull request #7364 from uliegecsm/viewctor_string #11

Merge pull request #7364 from uliegecsm/viewctor_string

Merge pull request #7364 from uliegecsm/viewctor_string #11

name: github-Linux-hpx
on:
push:
branches:
- develop
pull_request:
paths-ignore:
- '**/*.md'
types: [ opened, reopened, synchronize ]
concurrency:
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
permissions: read-all
jobs:
hpx:
name: hpx
runs-on: [ubuntu-latest]
steps:
- name: checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
path: kokkos
- name: setup hpx dependencies
run: |
sudo apt update
sudo apt install \
clang \
hwloc \
libasio-dev \
libboost-all-dev \
ninja-build
- name: checkout hpx
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: STELLAR-GROUP/hpx
ref: v1.9.0
path: hpx
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: cache-hpx
with:
path: ./hpx/install
key: kokkos-hwloc-${{ github.ref }}-${{ github.sha }}
restore-keys: kokkos-hwloc-${{ github.ref }}
- name: configure hpx
if: steps.cache-hpx.outputs.cache-hit != 'true'
run: |
mkdir -p hpx/{build,install}
cd hpx/build
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$PWD/../install \
-DCMAKE_CXX_COMPILER=clang++ \
-DHPX_WITH_UNITY_BUILD=ON \
-DHPX_WITH_MALLOC=system \
-DHPX_WITH_NETWORKING=OFF \
-DHPX_WITH_EXAMPLES=OFF \
-DHPX_WITH_TESTS=OFF \
..
- name: build and install hpx
if: steps.cache-hpx.outputs.cache-hit != 'true'
working-directory: hpx/build
run: ninja -j2 install
- name: configure kokkos
run: |
mkdir -p kokkos/{build,install}
cd kokkos/build
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$PWD/../install \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_CXX_FLAGS="-Werror" \
-DHPX_ROOT=$PWD/../../hpx/install \
-DKokkos_ENABLE_COMPILER_WARNINGS=ON \
-DKokkos_ENABLE_DEPRECATED_CODE_4=OFF \
-DKokkos_ENABLE_EXAMPLES=ON \
-DKokkos_ENABLE_HPX=ON \
-DKokkos_ENABLE_SERIAL=ON \
-DKokkos_ENABLE_TESTS=ON \
..
- name: build_and_install_kokkos
working-directory: kokkos/build
run: ninja -j2 install
- name: test_kokkos
working-directory: kokkos/build
run: ctest --timeout 2000 -j2 --output-on-failure