// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // SPDX-FileCopyrightText: Copyright Contributors to the Kokkos project #include #include #ifdef KOKKOS_ENABLE_EXPERIMENTAL_CXX20_MODULES import kokkos.core; #else #include #endif #include // NOLINTNEXTLINE(bugprone-exception-escape) int main(int argc, char *argv[]) { Kokkos::initialize(argc, argv); // We want to use "threadsafe" by default while the default in GTest on Linux // is "fast" if (!std::getenv("GTEST_DEATH_TEST_STYLE")) GTEST_FLAG_SET(death_test_style, "threadsafe"); ::testing::InitGoogleTest(&argc, argv); int result = RUN_ALL_TESTS(); Kokkos::finalize(); return result; }