Skip to content

Commit

Permalink
fix cuda build, roll back change to connect_result_t
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler committed Feb 7, 2025
1 parent 335e5b0 commit ab7f409
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion include/stdexec/__detail/__senders_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,5 @@ namespace stdexec {
};

template <class _Sender, class _Receiver>
requires sender_to<_Sender, _Receiver>
using connect_result_t = __call_result_t<connect_t, _Sender, _Receiver>;
} // namespace stdexec
8 changes: 7 additions & 1 deletion test/nvexec/reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@

#include <thrust/device_vector.h>
#include <cub/thread/thread_operators.cuh>
#include <cuda/functional>

#include <algorithm>
#include <span>

namespace ex = stdexec;

namespace {
struct minimum {
template <class T1, class T2>
constexpr auto
operator()(const T1& lhs, const T2& rhs) const -> _CUDA_VSTD::common_type_t<T1, T2> {
return (lhs < rhs) ? lhs : rhs;
}
};

TEST_CASE("nvexec reduce returns a sender with single input", "[cuda][stream][adaptors][reduce]") {
constexpr int N = 2048;
Expand Down

0 comments on commit ab7f409

Please sign in to comment.