alpaka
Abstraction Library for Parallel Kernel Acceleration
ViewTest.hpp File Reference
#include "alpaka/alpaka.hpp"
#include "alpaka/test/KernelExecutionFixture.hpp"
#include "alpaka/test/mem/view/Iterator.hpp"
#include <catch2/catch_test_macros.hpp>
#include <numeric>
#include <type_traits>

Go to the source code of this file.

Classes

struct  alpaka::test::VerifyBytesSetKernel
 Compares element-wise that all bytes are set to the same value. More...
 
struct  alpaka::test::VerifyViewsEqualKernel
 Compares iterators element-wise. More...
 

Namespaces

 alpaka
 The alpaka accelerator library.
 
 alpaka::test
 The test specifics.
 

Functions

template<typename TView , typename TQueue >
ALPAKA_FN_HOST auto alpaka::test::iotaFillView (TQueue &queue, TView &view) -> void
 Fills the given view with increasing values starting at 0. More...
 
template<typename TElem , typename TDim , typename TIdx , typename TDev , typename TView >
ALPAKA_FN_HOST auto alpaka::test::testViewImmutable (TView const &view, TDev const &dev, Vec< TDim, TIdx > const &extent, Vec< TDim, TIdx > const &offset) -> void
 
template<typename TAcc , typename TView , typename TQueue >
ALPAKA_FN_HOST auto alpaka::test::testViewMutable (TQueue &queue, TView &view) -> void
 
template<typename TAcc , typename TView >
ALPAKA_FN_HOST auto alpaka::test::verifyBytesSet (TView const &view, std::uint8_t const &byte) -> void
 
template<typename TAcc , typename TViewB , typename TViewA >
ALPAKA_FN_HOST auto alpaka::test::verifyViewsEqual (TViewA const &viewA, TViewB const &viewB) -> void