Minor correction in unit test

This commit is contained in:
Yunsong Wang
2022-02-06 20:19:21 -05:00
parent e05bf002f7
commit 6159d9c6cb

View File

@@ -58,8 +58,9 @@ void test_streams()
state_tester state{bench};
// Test non-owning stream
state.set_cuda_stream(nvbench::cuda_stream{cudaStreamDefault, false});
ASSERT(state.get_cuda_stream() == cudaStreamDefault);
cudaStream_t default_stream = 0;
state.set_cuda_stream(nvbench::cuda_stream{default_stream, false});
ASSERT(state.get_cuda_stream() == default_stream);
// Test owning stream
auto stream = nvbench::cuda_stream{};