-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/cuda reduce #1064
base: main
Are you sure you want to change the base?
Feature/cuda reduce #1064
Conversation
|
||
// this is basically the apply function that sender_apply is looking for. | ||
template <class S, class Fn> | ||
auto plscompile(S s, Fn f) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be renamed to apply
. I was conducting an experiment.
include/nvexec/stream_context.cuh
Outdated
auto transformed = reduce_sender_t<decltype(sender), decltype(initT), decltype(fun)>( | ||
{}, sender, initT, fun); | ||
return transformed; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some thoughts:
- Does the fact that hte compiler no longer complains about hte errors related to
__on::receiver_ref
not having a call operator thus indicate that the tree has been fully transformed, children and alike? I was going off of this assumption.
transform_sender will rely on this specialization of reconstitute for every sender alongside their children. Now one caveat is... Am I not transforming the entire tree? If that's the case, wouldn't there be an error similar to the 1st point? The fact htat it's looking for an apply
function, does that not indicate it has transformed the tree properly?
include/nvexec/stream_context.cuh
Outdated
(Sender&&) sndr, | ||
[&]<class Tag, class Data, class... Children>(Tag, Data&& data, Children... children) { | ||
if constexpr (sizeof...(Children) == 0) { | ||
return sndr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I shouldn't return sndr.
/ok to test |
fix cycle in type system in stream scheduler concepts
66cbfbf
to
b240e36
Compare
f8c27c5
to
6dce716
Compare
c16e048
to
d97b5df
Compare
/ok to test |
/ok to test |
No description provided.