From 7475b8929714760678d3455b132c827f47a0750a Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Sun, 22 Jan 2023 12:10:38 -0500 Subject: [PATCH] Remove dead OpenMP test source file --- core/unit_test/openmp/TestOpenMP.hpp | 80 ---------------------------- 1 file changed, 80 deletions(-) delete mode 100644 core/unit_test/openmp/TestOpenMP.hpp diff --git a/core/unit_test/openmp/TestOpenMP.hpp b/core/unit_test/openmp/TestOpenMP.hpp deleted file mode 100644 index 3a974d517c..0000000000 --- a/core/unit_test/openmp/TestOpenMP.hpp +++ /dev/null @@ -1,80 +0,0 @@ -//@HEADER -// ************************************************************************ -// -// Kokkos v. 4.0 -// Copyright (2022) National Technology & Engineering -// Solutions of Sandia, LLC (NTESS). -// -// Under the terms of Contract DE-NA0003525 with NTESS, -// the U.S. Government retains certain rights in this software. -// -// Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. -// See https://kokkos.org/LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//@HEADER - -#ifndef KOKKOS_TEST_OPENMP_HPP -#define KOKKOS_TEST_OPENMP_HPP - -#include - -#include - -#ifdef KOKKOS_LAMBDA -#undef KOKKOS_LAMBDA -#endif -#define KOKKOS_LAMBDA [=] - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace Test { - -class openmp : public ::testing::Test { - protected: - static void SetUpTestCase() { - int threads_count = 0; -#pragma omp parallel - { -#pragma omp atomic - ++threads_count; - } - - if (threads_count > 3) { - threads_count /= 2; - } - - Kokkos::OpenMP::initialize(threads_count); - Kokkos::print_configuration(std::cout, true); - - srand(10231); - } - - static void TearDownTestCase() { Kokkos::OpenMP::finalize(); } -}; - -} // namespace Test - -#endif