Skip to content

[STF] Use virtual dispatch for is_graph_ctx() for extensibility#8042

Merged
caugonnet merged 2 commits intoNVIDIA:mainfrom
caugonnet:stf_is_graph_ctx_virtual
Mar 18, 2026
Merged

[STF] Use virtual dispatch for is_graph_ctx() for extensibility#8042
caugonnet merged 2 commits intoNVIDIA:mainfrom
caugonnet:stf_is_graph_ctx_virtual

Conversation

@caugonnet
Copy link
Copy Markdown
Contributor

  • Add virtual bool is_graph_ctx() in backend_ctx (default false)
  • Override in graph_ctx to return true
  • Expose is_graph_ctx() on context_handle (pimpl)
  • context::is_graph_ctx() delegates via variant visitor to backend

Replaces brittle payload.index() == 1 check so new context types can participate without changing call sites.

Description

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

- Add virtual bool is_graph_ctx() in backend_ctx (default false)
- Override in graph_ctx to return true
- Expose is_graph_ctx() on context_handle (pimpl)
- context::is_graph_ctx() delegates via variant visitor to backend

Replaces brittle payload.index() == 1 check so new context types
can participate without changing call sites.

Made-with: Cursor
@caugonnet caugonnet self-assigned this Mar 16, 2026
@caugonnet caugonnet requested a review from a team as a code owner March 16, 2026 09:52
@caugonnet caugonnet added the stf Sequential Task Flow programming model label Mar 16, 2026
@caugonnet caugonnet requested a review from ericniebler March 16, 2026 09:52
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Mar 16, 2026
@copy-pr-bot
Copy link
Copy Markdown
Contributor

copy-pr-bot Bot commented Mar 16, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Mar 16, 2026
@caugonnet
Copy link
Copy Markdown
Contributor Author

/ok to test dd047ce

@caugonnet caugonnet mentioned this pull request Mar 16, 2026
2 tasks
@caugonnet caugonnet enabled auto-merge (squash) March 16, 2026 10:04
@github-actions

This comment has been minimized.

@caugonnet
Copy link
Copy Markdown
Contributor Author

/ok to test 5d561f3

@github-actions
Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 26m 56s: Pass: 100%/48 | Total: 9h 56m | Max: 19m 58s | Hits: 82%/23725

See results here.

@caugonnet caugonnet merged commit b29e0cd into NVIDIA:main Mar 18, 2026
64 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stf Sequential Task Flow programming model

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants