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

Workaround nvcxx compiler error. #1591

Merged
merged 1 commit into from
Jan 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions thrust/system/cuda/detail/extrema.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ namespace __extrema {
pair_type const &lhs_min = get<0>(lhs);
pair_type const &rhs_max = get<1>(rhs);
pair_type const &lhs_max = get<1>(lhs);
return thrust::make_tuple(arg_min_t(predicate)(lhs_min, rhs_min),
arg_max_t(predicate)(lhs_max, rhs_max));

auto result = thrust::make_tuple(arg_min_t(predicate)(lhs_min, rhs_min),
arg_max_t(predicate)(lhs_max, rhs_max));

return result;
}

struct duplicate_tuple
Expand Down