Update Kokkos library to v2.7.00

This commit is contained in:
Stan Moore
2018-05-25 15:00:53 -06:00
parent ce4a446cea
commit 1422b0413b
1248 changed files with 64103 additions and 5133 deletions

View File

@ -179,6 +179,10 @@ struct TestRange {
Kokkos::parallel_for( Kokkos::RangePolicy< ExecSpace, ScheduleType >( 0, N ), *this );
Kokkos::parallel_scan( "TestKernelScan", Kokkos::RangePolicy< ExecSpace, ScheduleType, OffsetTag>( 0, N ), *this );
int total = 0;
Kokkos::parallel_scan( "TestKernelScanWithTotal", Kokkos::RangePolicy< ExecSpace, ScheduleType, OffsetTag>( 0, N ), *this, total );
ASSERT_EQ( size_t( ( N - 1 ) * ( N ) / 2 ), size_t( total ) );// sum( 0 .. N-1 )
}
KOKKOS_INLINE_FUNCTION
@ -207,7 +211,11 @@ struct TestRange {
for ( int k = 0; k < ( i < N / 2 ? 1 : 10000 ); k++ ) {
a( i )++;
}
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE
count( ExecSpace::hardware_thread_id() )++;
#else
count( ExecSpace::impl_hardware_thread_id() )++;
#endif
});
int error = 0;
@ -240,7 +248,11 @@ struct TestRange {
for ( int k = 0; k < ( i < N / 2 ? 1 : 10000 ); k++ ) {
a( i )++;
}
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE
count( ExecSpace::hardware_thread_id() )++;
#else
count( ExecSpace::impl_hardware_thread_id() )++;
#endif
lsum++;
}, sum );
ASSERT_EQ( sum, N );