Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion include/nvexec/stream/bulk.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ namespace nv::execution::_strm
static_cast<Receiver&&>(rcvr),
[&](_strm::opstate_base<Receiver>& stream_provider) -> receiver_t<Receiver>
{
return receiver_t<Receiver>(self.shape_, static_cast<Fun&&>(self.fun_), stream_provider);
return receiver_t<Receiver>(self.shape_, static_cast<Self&&>(self).fun_, stream_provider);
});
}
STDEXEC_EXPLICIT_THIS_END(connect)
Expand Down
8 changes: 8 additions & 0 deletions test/nvexec/bulk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ namespace
(void) snd;
}

TEST_CASE("nvexec bulk supports const lvalue senders", "[cuda][stream][adaptors][bulk]")
{
nvexec::stream_context stream_ctx{};
auto const snd = ex::schedule(stream_ctx.get_scheduler()) | ex::bulk(ex::par, 1, [](int) {});

REQUIRE(STDEXEC::sync_wait(snd).has_value());
}

TEST_CASE("nvexec bulk executes on GPU", "[cuda][stream][adaptors][bulk]")
{
nvexec::stream_context stream_ctx{};
Expand Down
Loading