Skip to content

Commit 65079f9

Browse files
committed
Fix incorrect dependency handling for stream acquisition in thrust::future.
Bug 2646034
1 parent 0d2bcb3 commit 65079f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

thrust/system/cuda/detail/future.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ void create_dependencies_impl(
11211121
{
11221122
// We only need to wait on the current dependency if we didn't steal our
11231123
// stream from it.
1124-
if (!as.acquired_from || *as.acquired_from == I0)
1124+
if (!as.acquired_from || *as.acquired_from != I0)
11251125
{
11261126
create_dependency(as.stream, std::get<I0>(deps));
11271127
}

0 commit comments

Comments
 (0)