kokkos-utils 0.0.5
Loading...
Searching...
No Matches
test_slice.cpp File Reference
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "Kokkos_Core.hpp"
#include "kokkos-utils/view/extents.hpp"
#include "kokkos-utils/view/slice.hpp"

Go to the source code of this file.

Namespaces

namespace  Kokkos
namespace  Kokkos::utils
namespace  Kokkos::utils::tests
namespace  Kokkos::utils::tests::view

Macros

#define CHECK_THAT(__slice__, __rank__, __extents__)

Functions

 Kokkos::utils::tests::view::TEST (view, slice_rank_1)
 Kokkos::utils::tests::view::TEST (view, slice_rank_2)
 Kokkos::utils::tests::view::TEST (view, slice_rank_3)
 Kokkos::utils::tests::view::TEST (view, slice_rank_4)
template<concepts::ViewOfRank< 4 > ViewType>
bool Kokkos::utils::tests::view::test_slice_on_device (const ViewType &view, const size_t expected_size)
 Kokkos::utils::tests::view::TEST (view, slice_on_device)

Macro Definition Documentation

◆ CHECK_THAT

#define CHECK_THAT ( __slice__,
__rank__,
__extents__ )
Value:
{ \
const auto tmp = __slice__; \
ASSERT_EQ(tmp.rank(), __rank__); \
ASSERT_EQ(utils::view::extents(tmp), __extents__); \
}

Definition at line 26 of file test_slice.cpp.