Skip to content

Commit

Permalink
add config to unit tests for building with caliper
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed May 10, 2024
1 parent 432e2bb commit efc3e39
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,50 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
config: [boilerplate, release, debug_cuda_only, debug_mpi_only, debug_threads_only]
config: [boilerplate, release, debug_cuda_only, debug_mpi_only, debug_threads_only, boilerplate_caliper]

include:
- config: boilerplate
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_MPI: ON
PERFFLOWASPECT_WITH_MULTITHREADS: ON
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: release
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_MPI: ON
PERFFLOWASPECT_WITH_MULTITHREADS: ON
CMAKE_BUILD_TYPE: Release
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: debug_cuda_only
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_MPI: OFF
PERFFLOWASPECT_WITH_MULTITHREADS: OFF
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: debug_mpi_only
PERFFLOWASPECT_WITH_CUDA: OFF
PERFFLOWASPECT_WITH_MPI: ON
PERFFLOWASPECT_WITH_MULTITHREADS: OFF
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: debug_threads_only
PERFFLOWASPECT_WITH_CUDA: OFF
PERFFLOWASPECT_WITH_MPI: OFF
PERFFLOWASPECT_WITH_MULTITHREADS: ON
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: boilerplate_caliper
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_MPI: ON
PERFFLOWASPECT_WITH_MULTITHREADS: ON
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: ON

steps:
# Checkout PerfFlowAspect repository under $GITHUB_WORKSPACE
Expand All @@ -62,6 +74,21 @@ jobs:
clang++ --version
nvcc --version
- name: Clone Caliper
uses: actions/checkout@v2
with:
repository: LLNL/Caliper
path: Caliper

- name: Build Caliper
working-directory: Caliper
run: |
mkdir build && mkdir install
cd build
cmake -DCMAKE_INSTALL_PREFIX=../install ../
make VERBOSE=1
make install
- name: Compile check
run: |
export PATH=/usr/local/cuda-12.1/bin:$PATH
Expand All @@ -73,6 +100,7 @@ jobs:
export CMAKE_OPTS="${CMAKE_OPTS} -DPERFFLOWASPECT_WITH_CUDA=${{matrix.PERFFLOWASPECT_WITH_CUDA}}"
export CMAKE_OPTS="${CMAKE_OPTS} -DPERFFLOWASPECT_WITH_MPI=${{matrix.PERFFLOWASPECT_WITH_MPI}}"
export CMAKE_OPTS="${CMAKE_OPTS} -DPERFFLOWASPECT_WITH_MULTITHREADS=${{matrix.PERFFLOWASPECT_WITH_MULTITHREADS}}"
export CMAKE_OPTS="${CMAKE_OPTS} -DPERFFLOWASPECT_WITH_CALIPER=${{matrix.PERFFLOWASPECT_WITH_CALIPER}} -Dcaliper_DIR=/home/runner/work/PerfFlowAspect/PerfFlowAspect/Caliper/install"
echo -e ${CMAKE_OPTS}
cmake ${CMAKE_OPTS} ..
# build
Expand Down

0 comments on commit efc3e39

Please sign in to comment.