Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host only macro: adding macro to checks for any device backend #940

Merged
merged 2 commits into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cmake/KokkosKernels_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@
#endif
#endif

#if !defined(KOKKOS_ENABLE_CUDA) \
&& !defined(KOKKOS_ENABLE_HIP) \
&& !defined(KOKKOS_ENABLE_SYCL) \
brian-kelley marked this conversation as resolved.
Show resolved Hide resolved
&& !defined(KOKKOS_ENABLE_OPENMPTARGET)
#define KOKKOSKERNELS_ENABLE_HOST_ONLY
#endif


/*
* "Optimization level" for computational kernels in this subpackage.
Expand Down
2 changes: 0 additions & 2 deletions unit_test/cuda/Test_Cuda_Batched.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#ifndef TEST_CUDA_BATCHED_CPP
#define TEST_CUDA_BATCHED_CPP
#define KOKKOSKERNELS_CUDA_BATCHED_TESTS

#include<Test_Cuda.hpp>
#include<Test_Batched.hpp>

#undef KOKKOSKERNELS_CUDA_BATCHED_TESTS
#endif // TEST_CUDA_BATCHED_CPP