Skip to content

Commit ddfdad4

Browse files
author
Kloepfer
committed
Made test require cabana
1 parent 47fcdda commit ddfdad4

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,19 @@ meshfields_add_exe(ElementTests test/testElement.cpp)
162162
meshfields_add_exe(OmegahElementTests test/testOmegahElement.cpp)
163163
meshfields_add_exe(OmegahCoordFieldTest test/testOmegahCoordField.cpp)
164164
meshfields_add_exe(ExceptionTest test/testExceptions.cpp)
165-
meshfields_add_exe(ControllerPerformance test/testControllerPerformance.cpp)
166165

167166
if(MeshFields_USE_Cabana)
167+
meshfields_add_exe(ControllerPerformance test/testControllerPerformance.cpp)
168168
meshfields_add_exe(CabanaTests test/testCabana.cpp)
169169
test_func(CabanaTests ./CabanaTests)
170+
test_func(ControllerPerformance ./ControllerPerformance)
170171
endif()
171172

172173
test_func(KokkosTests ./KokkosTests)
173174
test_func(SerializationTests ./SerializationTests)
174175
test_func(ElementTests ./ElementTests)
175176
test_func(OmegahElementTests ./OmegahElementTests)
176177
test_func(OmegahCoordFieldTest ./OmegahCoordFieldTest)
177-
test_func(ControllerPerformance ./ControllerPerformance)
178178
if(MeshFields_USE_EXCEPTIONS)
179179
# exception caught - no error
180180
test_func(ExceptionTest ./ExceptionTest)

test/testControllerPerformance.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
#include "CabanaController.hpp"
12
#include "KokkosController.hpp"
23
#include "MeshField.hpp"
34
#include "MeshField_For.hpp"
4-
#ifdef MESHFIELDS_ENABLE_CABANA
5-
#include "CabanaController.hpp"
65
#include "MeshField_SimdFor.hpp"
7-
#endif
86
#include <Kokkos_Core.hpp>
97
#include <chrono>
108
#include <iomanip>
@@ -27,7 +25,6 @@ int main(int argc, char **argv) {
2725
which = atoi(argv[3]);
2826
}
2927
Kokkos::initialize(argc, argv);
30-
#ifdef MESHFIELDS_ENABLE_CABANA
3128
if (which) {
3229
double avg = 0;
3330
using cab = MeshField::CabanaController<ExecutionSpace, MemorySpace,
@@ -67,7 +64,6 @@ int main(int argc, char **argv) {
6764
avg = avg / runs;
6865
std::cout << std::fixed << std::setprecision(1) << avg << std::endl;
6966
}
70-
#endif
7167
Kokkos::finalize();
7268
return 0;
7369
}

0 commit comments

Comments
 (0)