Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 025ac72

Browse files
committed
Fix incorrect dependency handling for stream acquisition in thrust::future.
Bug 2646034
1 parent 3be3523 commit 025ac72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thrust/system/cuda/detail/future.inl

+1-1
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)