From 8317118a66e41b54c95c2cc5d3971056ed4b3ce6 Mon Sep 17 00:00:00 2001 From: Vivek Kale <11766050+vlkale@users.noreply.github.com> Date: Wed, 20 Mar 2024 08:50:08 -0700 Subject: [PATCH] add cmake --- tests/CMakeLists.txt | 12 +++++++++++- tests/sampler/CMakeLists.txt | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6588715a7..a508225f1 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -45,7 +45,7 @@ function(kp_add_executable_and_test) TEST ${kaeat_args_TARGET_NAME} APPEND PROPERTY - ENVIRONMENT "KOKKOS_TOOLS_LIBS=$;$" + ENVIRONMENT "KOKKOS_TOOLS_LIBS=$\;$" ) else() set_property( @@ -74,6 +74,16 @@ function(kp_add_executable_and_test) ENVIRONMENT "KOKKOS_TOOLS_GLOBALFENCES=${kaeat_args_KOKKOS_TOOLS_GLOBALFENCES}" ) endif() + + if (DEFINED kaeat_args_KOKKOS_TOOLS_SAMPLER_SKIP) + set_property( + TEST ${kaeat_args_TARGET_NAME} + APPEND + PROPERTY + ENVIRONMENT "KOKKOS_TOOLS_SAMPLER_SKIP=${kaeat_args_KOKKOS_TOOLS_SAMPLER_SKIP}" + ) + + endif() endfunction(kp_add_executable_and_test) diff --git a/tests/sampler/CMakeLists.txt b/tests/sampler/CMakeLists.txt index b0db4be06..537c2dd20 100644 --- a/tests/sampler/CMakeLists.txt +++ b/tests/sampler/CMakeLists.txt @@ -4,5 +4,6 @@ kp_add_executable_and_test( KOKKOS_TOOLS_LIBS kp_kokkos_sampler KOKKOS_TOOLS_LIBS2 kp_kernel_logger KOKKOS_TOOLS_SAMPLER_VERBOSE 1 + KOKKOS_TOOLS_SAMPLER_SKIP 101 KOKKOS_TOOLS_GLOBALFENCES 1 )