#include #include #include #include void verify_stream() { auto exec = thrust::device; auto stream = thrust::cuda_cub::stream(exec); ASSERT_EQUAL(stream, cudaStreamPerThread); } void TestPerThreadDefaultStream() { verify_stream(); std::thread t(verify_stream); t.join(); } DECLARE_UNITTEST(TestPerThreadDefaultStream);