Skip to content

Refactor failure_callback_resource_adaptor to shared CCCL MR design#2278

Merged
bdice merged 3 commits intorapidsai:stagingfrom
bdice:detemplate-failure-callback
Mar 10, 2026
Merged

Refactor failure_callback_resource_adaptor to shared CCCL MR design#2278
bdice merged 3 commits intorapidsai:stagingfrom
bdice:detemplate-failure-callback

Conversation

@bdice
Copy link
Copy Markdown
Collaborator

@bdice bdice commented Mar 6, 2026

Summary

  • Split failure_callback_resource_adaptor implementation into detail/failure_callback_resource_adaptor_impl.hpp (header-only, since impl is templated on ExceptionType)
  • Accept device_async_resource_ref upstream; template parameter changes from <Upstream, ExceptionType> to <ExceptionType> only
  • Add mr_ref_failure_callback_tests.cpp and integrate into cccl_adaptor_tests.cpp typed test suite
  • Update adaptor_tests.cpp type aliases, NullUpstream, and Equality tests
  • Update Cython .pxd/.pyx bindings to use [ExceptionType] template parameter with out_of_memory forward decl

@bdice bdice added breaking Breaking change improvement Improvement / enhancement to an existing function labels Mar 6, 2026
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Mar 6, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@bdice
Copy link
Copy Markdown
Collaborator Author

bdice commented Mar 6, 2026

/ok to test 23677c9

@bdice bdice marked this pull request as ready for review March 10, 2026 20:50
@bdice bdice requested review from a team as code owners March 10, 2026 20:50
@bdice bdice requested review from lamarrr and ttnghia and removed request for a team March 10, 2026 20:50
@bdice
Copy link
Copy Markdown
Collaborator Author

bdice commented Mar 10, 2026

Self-reviewed -- this is aligned with the other refactorings. I will admin-merge this after resolving conflicts with #2277.

Resolve merge conflicts in adaptor_tests.cpp by combining both
de-templating changes: failure_callback_resource_adaptor<> (this branch)
and limiting_resource_adaptor (staging).
@bdice bdice merged commit 939b99c into rapidsai:staging Mar 10, 2026
81 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking change improvement Improvement / enhancement to an existing function

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant