kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
Kokkos::utils::tests::view Namespace Reference

Functions

 TEST (view, extents_rank_0)
 
 TEST (view, extents_rank_1)
 
 TEST (view, extents_rank_2)
 
 TEST (view, extents_rank_3)
 
 TEST (view, extents_rank_4)
 
 TEST (view, slice_rank_1)
 
 TEST (view, slice_rank_2)
 
 TEST (view, slice_rank_3)
 
 TEST (view, slice_rank_4)
 
template<concepts::ViewOfRank< 4 > ViewType>
bool test_slice_on_device (const ViewType &view, const size_t expected_size)
 
 TEST (view, slice_on_device)
 

Variables

constexpr size_t dim_1 = 5
 
constexpr size_t dim_2 = 3
 
constexpr size_t dim_3 = 6
 
constexpr size_t dim_4 = 9
 

Function Documentation

◆ TEST() [1/10]

Kokkos::utils::tests::view::TEST ( view ,
extents_rank_0  )
Test
Check that view::extents works as expected for a rank-0 Kokkos::View.

Definition at line 28 of file test_extents.cpp.

◆ TEST() [2/10]

Kokkos::utils::tests::view::TEST ( view ,
extents_rank_1  )
Test
Check that view::extents works as expected for a rank-1 Kokkos::View.

Definition at line 36 of file test_extents.cpp.

◆ TEST() [3/10]

Kokkos::utils::tests::view::TEST ( view ,
extents_rank_2  )
Test
Check that view::extents works as expected for a rank-2 Kokkos::View.

Definition at line 46 of file test_extents.cpp.

◆ TEST() [4/10]

Kokkos::utils::tests::view::TEST ( view ,
extents_rank_3  )
Test
Check that view::extents works as expected for a rank-3 Kokkos::View.

Definition at line 58 of file test_extents.cpp.

◆ TEST() [5/10]

Kokkos::utils::tests::view::TEST ( view ,
extents_rank_4  )
Test
Check that view::extents works as expected for a rank-4 Kokkos::View.

Definition at line 70 of file test_extents.cpp.

◆ TEST() [6/10]

Kokkos::utils::tests::view::TEST ( view ,
slice_on_device  )
Test
Check that view::slice works on device.

Definition at line 112 of file test_slice.cpp.

◆ TEST() [7/10]

Kokkos::utils::tests::view::TEST ( view ,
slice_rank_1  )
Test
Check that view::slice works as expected for a rank-1 Kokkos::View.

Definition at line 36 of file test_slice.cpp.

◆ TEST() [8/10]

Kokkos::utils::tests::view::TEST ( view ,
slice_rank_2  )
Test
Check that view::slice works as expected for a rank-2 Kokkos::View.

Definition at line 49 of file test_slice.cpp.

◆ TEST() [9/10]

Kokkos::utils::tests::view::TEST ( view ,
slice_rank_3  )
Test
Check that view::slice works as expected for a rank-3 Kokkos::View.

Definition at line 61 of file test_slice.cpp.

◆ TEST() [10/10]

Kokkos::utils::tests::view::TEST ( view ,
slice_rank_4  )
Test
Check that view::slice works as expected for a rank-4 Kokkos::View.

Definition at line 75 of file test_slice.cpp.

◆ test_slice_on_device()

template<concepts::ViewOfRank< 4 > ViewType>
bool Kokkos::utils::tests::view::test_slice_on_device ( const ViewType & view,
const size_t expected_size )

Definition at line 87 of file test_slice.cpp.

Variable Documentation

◆ dim_1

size_t Kokkos::utils::tests::view::dim_1 = 5
constexpr

Definition at line 25 of file test_extents.cpp.

◆ dim_2

size_t Kokkos::utils::tests::view::dim_2 = 3

Definition at line 25 of file test_extents.cpp.

◆ dim_3

size_t Kokkos::utils::tests::view::dim_3 = 6

Definition at line 25 of file test_extents.cpp.

◆ dim_4

size_t Kokkos::utils::tests::view::dim_4 = 9

Definition at line 25 of file test_extents.cpp.