From efc3e3993ecae4322a01d11f87af9fdfe3c75733 Mon Sep 17 00:00:00 2001 From: Stephanie Brink Date: Fri, 10 May 2024 10:32:08 -0700 Subject: [PATCH] add config to unit tests for building with caliper --- .github/workflows/github-actions.yml | 30 +++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 028d3032..c3633115 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -9,7 +9,7 @@ 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 @@ -17,30 +17,42 @@ jobs: 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 @@ -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 @@ -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