Spaces:
Runtime error
Runtime error
template <typename T> | |
void TestPinnedAllocatorSimple(const size_t n) | |
{ | |
typedef thrust::host_vector<T, thrust::cuda::experimental::pinned_allocator<T> > Vector; | |
Vector h_input = unittest::random_integers<T>(n); | |
Vector h_output(n); | |
thrust::copy(h_input.begin(), h_input.end(), h_output.begin()); | |
ASSERT_EQUAL(h_input, h_output); | |
} | |
DECLARE_VARIABLE_UNITTEST(TestPinnedAllocatorSimple); | |