Skip to content

Conversation

@vossmjp
Copy link
Contributor

@vossmjp vossmjp commented May 1, 2025

This PR describes changes to the experimental dynamic selection design to improve the tools to create custom backends and custom policies for dynamic selection.

Major Changes:

  • addition of policy_base to handle much of the boilerplate code for new custom policies, and default_backend to do the same for new custom backends.
  • addition of ResourceAdapter support provides the ability to serve different flavors of resource with the same backend. (sycl::queue vs sycl::queue*)

@vossmjp vossmjp requested review from danhoeflinger and egfefey May 1, 2025 21:16
The `get_submission_group` is not easily implemented in a meaningful way. It must return a type that
defines a member function `wait`. But since there is no way to know how to wait on all previous submissions
for an arbitrary backend resource, this function will likely need to return a dummy type or
`get_submission_group` be undefined for the default backend.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we could provide a way to have the user give us the wait type, do we have a shot? Or maybe it's better to leave this out to make the default case simple.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets consider if there's a meaningful default or not. I'm not sure that there is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a meaningful default is to call wait on all resources, if they have a wait function.

@akukanov akukanov added the RFC label May 6, 2025
Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks pretty good. Mostly just quite minor changes for now.

Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first pass at feedback

@vossmjp vossmjp changed the title WIP: Custom backends for Dynamic Selection Custom backends and policies for Dynamic Selection Aug 18, 2025
@vossmjp vossmjp changed the title Custom backends and policies for Dynamic Selection RFC: Custom backends and policies for Dynamic Selection Aug 18, 2025
@vossmjp vossmjp marked this pull request as ready for review August 18, 2025 21:37
vossmjp and others added 23 commits October 29, 2025 15:39
Co-authored-by: Dan Hoeflinger <[email protected]>
Co-authored-by: Dan Hoeflinger <[email protected]>
Co-authored-by: Dan Hoeflinger <[email protected]>
Co-authored-by: Dan Hoeflinger <[email protected]>
Co-authored-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
@danhoeflinger danhoeflinger force-pushed the dev/vossmjp/ds_custom_backends branch from 99152b4 to 80ad6b8 Compare October 29, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants