Skip to content

Commit

Permalink
add cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Mar 20, 2024
1 parent fa33166 commit 8317118
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function(kp_add_executable_and_test)
TEST ${kaeat_args_TARGET_NAME}
APPEND
PROPERTY
ENVIRONMENT "KOKKOS_TOOLS_LIBS=$<TARGET_FILE:${kaeat_args_KOKKOS_TOOLS_LIBS}>;$<TARGET_FILE:${kaeat_args_KOKKOS_TOOLS_LIBS2}>"
ENVIRONMENT "KOKKOS_TOOLS_LIBS=$<TARGET_FILE:${kaeat_args_KOKKOS_TOOLS_LIBS}>\;$<TARGET_FILE:${kaeat_args_KOKKOS_TOOLS_LIBS2}>"
)
else()
set_property(
Expand Down Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions tests/sampler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 8317118

Please sign in to comment.