#include #include #include template void TestCudaMallocResultAligned(const std::size_t n) { T* ptr = nullptr; cudaMalloc(&ptr, n * sizeof(T)); cudaFree(ptr); ASSERT_EQUAL(true, ::cuda::std::is_sufficiently_aligned(ptr)); } DECLARE_VARIABLE_UNITTEST(TestCudaMallocResultAligned);