Updating Kokkos lib
This commit is contained in:
@ -40,8 +40,8 @@
|
||||
// ************************************************************************
|
||||
//@HEADER
|
||||
*/
|
||||
#ifndef KOKKOS_TEST_OPENMPHPP
|
||||
#define KOKKOS_TEST_OPENMPHPP
|
||||
#ifndef KOKKOS_TEST_OPENMP_HPP
|
||||
#define KOKKOS_TEST_OPENMP_HPP
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <Kokkos_Macros.hpp>
|
||||
@ -65,6 +65,7 @@
|
||||
#include <TestViewSubview.hpp>
|
||||
#include <TestAtomic.hpp>
|
||||
#include <TestAtomicOperations.hpp>
|
||||
#include <TestAtomicViews.hpp>
|
||||
#include <TestRange.hpp>
|
||||
#include <TestTeam.hpp>
|
||||
#include <TestReduce.hpp>
|
||||
|
||||
@ -164,5 +164,41 @@ TEST_F( openmp , atomic_operations )
|
||||
|
||||
}
|
||||
|
||||
|
||||
TEST_F( openmp , atomic_views_integral )
|
||||
{
|
||||
const long length = 1000000;
|
||||
{
|
||||
//Integral Types
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 1 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 2 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 3 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 4 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 5 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 6 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 7 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestIntegralType<long, Kokkos::OpenMP>(length, 8 ) ) );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F( openmp , atomic_views_nonintegral )
|
||||
{
|
||||
const long length = 1000000;
|
||||
{
|
||||
//Non-Integral Types
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestNonIntegralType<double,Kokkos::OpenMP>(length, 1 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestNonIntegralType<double,Kokkos::OpenMP>(length, 2 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestNonIntegralType<double,Kokkos::OpenMP>(length, 3 ) ) );
|
||||
ASSERT_TRUE( ( TestAtomicViews::AtomicViewsTestNonIntegralType<double,Kokkos::OpenMP>(length, 4 ) ) );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F( openmp , atomic_view_api )
|
||||
{
|
||||
TestAtomicViews::TestAtomicViewAPI<int, Kokkos::OpenMP>();
|
||||
}
|
||||
|
||||
} // namespace test
|
||||
|
||||
|
||||
@ -136,7 +136,7 @@ TEST_F( openmp , task_team )
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#if defined( KOKKOS_HAVE_DEFAULT_DEVICE_TYPE_OPENMP )
|
||||
#if defined( KOKKOS_ENABLE_DEFAULT_DEVICE_TYPE_OPENMP )
|
||||
TEST_F( openmp , cxx11 )
|
||||
{
|
||||
if ( std::is_same< Kokkos::DefaultExecutionSpace , Kokkos::OpenMP >::value ) {
|
||||
|
||||
@ -72,7 +72,7 @@ TEST_F( openmp, team_scratch_request) {
|
||||
TestScratchTeam< Kokkos::OpenMP , Kokkos::Schedule<Kokkos::Dynamic> >();
|
||||
}
|
||||
|
||||
#if defined(KOKKOS_HAVE_CXX11_DISPATCH_LAMBDA)
|
||||
#if defined(KOKKOS_ENABLE_CXX11_DISPATCH_LAMBDA)
|
||||
TEST_F( openmp , team_lambda_shared_request) {
|
||||
TestLambdaSharedTeam< Kokkos::HostSpace, Kokkos::OpenMP , Kokkos::Schedule<Kokkos::Static> >();
|
||||
TestLambdaSharedTeam< Kokkos::HostSpace, Kokkos::OpenMP , Kokkos::Schedule<Kokkos::Dynamic> >();
|
||||
|
||||
Reference in New Issue
Block a user