Gromacs
2018.7
|
#include "gmxpre.h"
#include "gromacs/gpu_utils/hostallocator.h"
#include "config.h"
#include <type_traits>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/gpu_utils/gpu_utils.h"
#include "gromacs/math/vectypes.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/real.h"
#include "devicetransfers.h"
#include "gputest.h"
#include "gromacs/utility/tests/alignedallocator-impl.h"
Tests for GPU host allocator.
Classes | |
class | gmx::anonymous_namespace{hostallocator.cpp}::HostMemoryTest< T > |
Typed test fixture for infrastructure for host-side memory used for GPU transfers. More... | |
class | gmx::anonymous_namespace{hostallocator.cpp}::HostAllocatorTest< T > |
Typed test fixture. More... | |
Typedefs | |
typedef ::testing::Types< int, real, RVec > | gmx::anonymous_namespace{hostallocator.cpp}::TestTypes |
The types used in testing. | |
using | gmx::anonymous_namespace{hostallocator.cpp}::AllocatorTypesToTest = ::testing::Types< HostAllocator< real >, HostAllocator< int >, HostAllocator< RVec > > |
Declare allocator types to test. | |
Functions | |
template<typename T > | |
ArrayRef< char > | gmx::anonymous_namespace{hostallocator.cpp}::charArrayRefFromArray (T *data, size_t size) |
Convenience function to transform a view into one with base type of (non-const) char. More... | |
template<typename VectorType > | |
bool | gmx::anonymous_namespace{hostallocator.cpp}::isPinned (const VectorType &v) |
Helper function for wrapping a call to isHostMemoryPinned. | |