-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qualify call to distance in thrust::async_reduce (#1904)
If the arguments to the unqualified call to distance contain entities from the thrust and cuda::std namespaces at the same time, the distance functions from both namespaces are available and cause an ambiguity. Also use ::cuda::std::unique_ptr to work around a swap issue: std::unique_ptr in libstdc++ before gcc10 used swap() internally, which would lead to an ambiguous call between std::swap and cuda::std::swap. Fixes: #1886
- Loading branch information
1 parent
3df3bcf
commit df8109c
Showing
3 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters