Gromacs
2018.8
|
Classes | |
class | HostMemoryTest |
Typed test fixture for infrastructure for host-side memory used for GPU transfers. More... | |
class | HostAllocatorTest |
Typed test fixture. More... | |
Typedefs | |
typedef ::testing::Types< int, real, RVec > | TestTypes |
The types used in testing. | |
using | AllocatorTypesToTest = ::testing::Types< HostAllocator< real >, HostAllocator< int >, HostAllocator< RVec > > |
Declare allocator types to test. | |
Functions | |
template<typename T > | |
ArrayRef< char > | 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 | isPinned (const VectorType &v) |
Helper function for wrapping a call to isHostMemoryPinned. | |
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.
This transformation is useful for using containers with C APIs where the function signature is not declared const even where the semantics of the usage actually are const.
[in] | data | The data pointer. |
[in] | size | The size of the data pointer (in T). |
T | The base type of the container |