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

Commit

Permalink
Restore some THRUST_DECLTYPE_RETURNS macros in async test implementat…
Browse files Browse the repository at this point in the history
…ions.

This partially reverts 7ff227a and
fixes #1250.

I'm not sure why changing these broke the tests, but since these
usages are just testing details that are being refactored by #1251
let's just revert the change for now.

The test failures were only happening on GCC, MSVC was fine with both
versions of these functions, so it may be a compiler issue.
  • Loading branch information
alliepiper committed Aug 12, 2020
1 parent 3ba36bf commit a713f93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testing/async_reduce.cu
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct custom_plus
auto operator()( \
ForwardIt&& first, Sentinel&& last \
) \
THRUST_RETURNS( \
THRUST_DECLTYPE_RETURNS( \
::thrust::async::reduce( \
__VA_ARGS__ \
) \
Expand Down
2 changes: 1 addition & 1 deletion testing/async_reduce_into.cu
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct custom_plus
auto operator()( \
ForwardIt&& first, Sentinel&& last, OutputIt&& output \
) \
THRUST_RETURNS( \
THRUST_DECLTYPE_RETURNS( \
::thrust::async::reduce_into( \
__VA_ARGS__ \
) \
Expand Down
2 changes: 1 addition & 1 deletion testing/async_transform.cu
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct divide_by_2
ForwardIt&& first, Sentinel&& last, OutputIt&& output \
, UnaryOperation&& op \
) \
THRUST_RETURNS( \
THRUST_DECLTYPE_RETURNS( \
::thrust::async::transform( \
__VA_ARGS__ \
) \
Expand Down

0 comments on commit a713f93

Please sign in to comment.