#include #include #include template void TestCudaMallocResultAligned(const std::size_t n) { T *ptr = 0; cudaMalloc(&ptr, n * sizeof(T)); cudaFree(ptr); ASSERT_EQUAL(true, thrust::detail::util::is_aligned(ptr)); } DECLARE_VARIABLE_UNITTEST(TestCudaMallocResultAligned);