Skip to content

Commit

Permalink
using new cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Jan 17, 2025
1 parent 84d854d commit 1d596ed
Showing 1 changed file with 73 additions and 55 deletions.
128 changes: 73 additions & 55 deletions .github/workflows/cmake-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
test-build:
runs-on: ubuntu-latest
timeout-minutes: 30

defaults:
run:
Expand Down Expand Up @@ -34,19 +35,28 @@ jobs:

- uses: actions/checkout@v4

- name: build Catch2
uses: ./.github/actions/install-repo
with:
repo-name: 'Catch2'
repo-path: 'catchorg/Catch2'
repo-ref: ''
cache: true

- name: build kokkos
uses: ./.github/actions/install-repo
with:
repo-name: 'kokkos'
repo-path: 'kokkos/kokkos'
repo-ref: '4.2.00'
cache: true
options: '-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
options: '-DCMAKE_CXX_STANDARD=17
-DKokkos_ENABLE_SERIAL=ON
-DKokkos_ENABLE_OPENMP=off
-DKokkos_ENABLE_CUDA=off
-DKokkos_ENABLE_CUDA_LAMBDA=off
-DKokkos_ENABLE_DEBUG=on'
-DKokkos_ENABLE_OPENMP=ON
-DKokkos_ENABLE_CUDA=OFF
-DKokkos_ENABLE_CUDA_LAMBDA=OFF
-DKokkos_ENABLE_CUDA_CONSTEXPR=OFF
-DBUILD_SHARED_LIBS=ON'

- name: build kokkos-kernels
uses: ./.github/actions/install-repo
Expand All @@ -55,73 +65,75 @@ jobs:
repo-path: 'kokkos/kokkos-kernels'
repo-ref: '4.2.00'
cache: true
options: '-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib/cmake/Kokkos'
options: '-DCMAKE_CXX_STANDARD=17
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib/cmake/Kokkos
-DBUILD_SHARED_LIBS=ON'

- name: build ADIOS2
- name: build omega_h
uses: ./.github/actions/install-repo
with:
repo-name: 'ADIOS2'
repo-path: 'ornladios/ADIOS2'
repo-name: 'omega_h'
repo-path: 'SCOREC/omega_h'
repo-ref: ''
cache: true
options: '-DADIOS2_USE_CUDA=off
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_COMPILER=mpicxx
-DCMAKE_C_COMPILER=mpicc'

options: '-DCMAKE_CXX_COMPILER=`which mpicxx`
-DCMAKE_C_COMPILER=`which mpicc`
-DOmega_h_USE_MPI=ON
-DOmega_h_USE_Kokkos=ON
-DBUILD_TESTING=ON
-DMPIEXEC_EXECUTABLE=`which mpirun`
-DBUILD_SHARED_LIBS=OFF
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib/cmake/Kokkos
-DCMAKE_VERBOSE_MAKEFILE=ON
-DBUILD_SHARED_LIBS=ON'

- name: build perfstubs
uses: ./.github/actions/install-repo
with:
repo-name: 'perfstubs'
repo-path: 'UO-OACISS/perfstubs'
repo-ref: ''
cache: true
options: '-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_COMPILER=mpicxx
-DCMAKE_C_COMPILER=mpicc'
options: '-DCMAKE_CXX_COMPILER=mpicxx'

- name: build redev
- name: build kokkos-fortran-interop
uses: ./.github/actions/install-repo
with:
repo-name: 'redev'
repo-path: 'SCOREC/redev'
repo-name: 'kokkos-fortran-interop'
repo-path: 'kokkos/kokkos-fortran-interop'
repo-ref: ''
cache: true
options: '-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_COMPILER=mpicxx
-DCMAKE_C_COMPILER=mpicc
-DMPIEXEC_EXECUTABLE=`which srun`
-Dperfstubs_DIR=${{ runner.temp }}/build-perfstubs
-DADIOS2_ROOT=${{ runner.temp }}/build-ADIOS2/install'

- name: build omega_h
-DCMAKE_CXX_COMPILER=`which mpicxx`
-DCMAKE_C_COMPILER=`which mpicc`
-DCMAKE_Fortran_COMPILER=`which mpifort`
-DBUILD_TESTING=OFF
-DFLCL_BUILD_TESTS=OFF
-DFLCL_BUILD_EXAMPLE=OFF
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib/cmake/Kokkos'

- name: build ADIOS2
uses: ./.github/actions/install-repo
with:
repo-name: 'omega_h'
repo-path: 'SCOREC/omega_h'
repo-name: 'ADIOS2'
repo-path: 'ornladios/ADIOS2'
repo-ref: ''
cache: true
options: '-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=off
-DOmega_h_USE_Kokkos=on
-DOmega_h_USE_CUDA=off
-DOmega_h_USE_MPI=on
-DMPIEXEC_EXECUTABLE=srun
-DBUILD_TESTING=off
-DCMAKE_C_COMPILER=mpicc
-DCMAKE_CXX_COMPILER=mpicxx
-DKokkos_PREFIX=${{ runner.temp }}/build-kokkos/install/lib/cmake'
options: '-DADIOS2_USE_CUDA=OFF'

- name: build Catch2
- name: build redev
uses: ./.github/actions/install-repo
with:
repo-name: 'Catch2'
repo-path: 'catchorg/Catch2'
repo-name: 'redev'
repo-path: 'SCOREC/redev'
repo-ref: ''
cache: true
options: '-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_COMPILER=mpicxx'
options: '-DCMAKE_CXX_COMPILER=`which mpicxx`
-DMPIEXEC_EXECUTABLE=`which mpirun`
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=ON
-DADIOS2_DIR=${{ runner.temp }}/build-ADIOS2/install/lib/cmake/adios2/
-Dperfstubs_DIR=${{ runner.temp }}/build-perfstubs/install/lib/cmake'

- name: checkout pcms_testcases
uses: actions/checkout@v3
Expand All @@ -139,16 +151,22 @@ jobs:
repo-path: 'SCOREC/pcms'
repo-ref: ''
cache: false
options: '-DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_COMPILER=mpicc
-DCMAKE_CXX_COMPILER=mpicxx
-Dredev_DIR=${{ runner.temp }}/build-redev/install/lib/cmake/redev
-Dperfstubs_DIR=${{ runner.temp }}/build-perfstubs
-DOmega_h_DIR=${{ runner.temp }}/build-omega_h/install/lib/cmake/Omega_h
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib/cmake/Kokkos
-DCatch2_DIR=${{ runner.temp }}/build-Catch2/install/lib/cmake/Catch2
-DKokkosKernels_DIR=${{ runner.temp }}/build-kokkos-kernels/install/lib/cmake/KokkosKernels
-DPCMS_TEST_DATA_DIR=$PWD/pcms_testcases'
options: '-DCMAKE_CXX_COMPILER=`which mpicxx`
-DCMAKE_C_COMPILER=`which mpicc`
-DCMAKE_Fortran_COMPILER=`which mpifort`
-DCMAKE_BUILD_TYPE=Release
-DPCMS_TIMEOUT=0
-DCatch2_DIR=${{ runner.temp }}/build-Catch2/install/lib64/cmake/Catch2/
-DOmega_h_DIR=${{ runner.temp }}/build-omega_h/install/lib64/cmake/Omega_h/
-Dredev_DIR=${{ runner.temp }}/build-redev/install/lib64/cmake/redev/
-Dflcl_DIR=${{ runner.temp }}/build-kokkos-fortran-interop/install/lib64/cmake/flcl/
-DPCMS_TEST_DATA_DIR=$PWD/pcms_testcases
-DMPIEXEC_EXECUTABLE=`which mpirun`
-DADIOS2_DIR=${{ runner.temp }}/build-ADIOS2/install/lib64/cmake/adios2/
-Dperfstubs_DIR=${{ runner.temp }}/build-perfstubs/install/lib/cmake/
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib64/cmake/Kokkos/
-DKokkosKernels_DIR=${{ runner.temp }}/build-kokkos-kernels/install/lib64/cmake/KokkosKernels/
-DBUILD_TESTING=ON'

# - name: Install Valgrind
# run: sudo apt-get install -yq valgrind
Expand Down

0 comments on commit 1d596ed

Please sign in to comment.