kokkos-execution 0.0.1
Loading...
Searching...
No Matches
init_gtest_and_kokkos.cpp
Go to the documentation of this file.
1#include "gtest/gtest.h"
2
3#include "Kokkos_Macros.hpp"
4#ifdef KOKKOS_ENABLE_EXPERIMENTAL_CXX20_MODULES
5import kokkos.core;
6#else
7# include "Kokkos_Core.hpp"
8#endif
9
11int main(int argc, char** argv) {
12 ::testing::InitGoogleTest(&argc, argv);
13
15 Kokkos::Tools::Experimental::set_request_tool_settings_callback(
16 [](const uint32_t, Kokkos::Tools::Experimental::ToolSettings* settings) -> void {
17 settings->requires_global_fencing = false;
18 });
19
20 Kokkos::initialize(argc, argv);
21
22 Kokkos::print_configuration(std::cout);
23
24 const auto code = RUN_ALL_TESTS();
25
26 Kokkos::finalize();
27
28 return code;
29}
int main(int argc, char **argv)