From cbfad0b19cc9215872f1532a7d0de2b4687a2249 Mon Sep 17 00:00:00 2001 From: Kenneth Weiss Date: Mon, 23 Jan 2023 21:10:59 -0800 Subject: [PATCH] Only run `omp`, `cuda` and `hip` tests for DistributedClosestPoint in `RAJA` configurations These capabilities are provided by RAJA. --- src/axom/quest/examples/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/axom/quest/examples/CMakeLists.txt b/src/axom/quest/examples/CMakeLists.txt index f641e3dea8..140233b3db 100644 --- a/src/axom/quest/examples/CMakeLists.txt +++ b/src/axom/quest/examples/CMakeLists.txt @@ -53,9 +53,11 @@ if(ENABLE_MPI AND AXOM_ENABLE_SIDRE) # Run the distributed closest point example on N ranks for each enabled policy set(_policies "seq") - blt_list_append(TO _policies ELEMENTS "omp" IF ENABLE_OPENMP) - blt_list_append(TO _policies ELEMENTS "cuda" IF ENABLE_CUDA) - blt_list_append(TO _policies ELEMENTS "hip" IF ENABLE_HIP) + if(RAJA_FOUND) + blt_list_append(TO _policies ELEMENTS "cuda" IF ENABLE_CUDA) + blt_list_append(TO _policies ELEMENTS "hip" IF ENABLE_HIP) + blt_list_append(TO _policies ELEMENTS "omp" IF ENABLE_OPENMP) + endif() # Non-zero empty-rank probability tests domain underloading case set(_meshes "mdmesh.2x1" "mdmesh.2x3")