Fix incorrect dependency handling for stream acquisition in `thrust::future`.
Bug
MODIFY
thrust/system/cuda/detail/future.inl
thrust/system/cuda/detail/future.inl
@@ -1121,7 +1121,7 @@ void create_dependencies_impl(
{
// We only need to wait on the current dependency if we didn't steal our
// stream from it.
- if (!as.acquired_from || *as.acquired_from == I0)
+ if (!as.acquired_from || *as.acquired_from != I0)
{
create_dependency(as.stream, std::get<I0>(deps));
}

Fix incorrect dependency handling for stream acquisition in `thrust::future`.

Bug 2646034