Skip to content

[UR] Add spec and implementation for urQueueGetGraphExp#21801

Draft
mmichel11 wants to merge 3 commits intointel:syclfrom
adamfidel:matt/ur_get_graph_pr_exp
Draft

[UR] Add spec and implementation for urQueueGetGraphExp#21801
mmichel11 wants to merge 3 commits intointel:syclfrom
adamfidel:matt/ur_get_graph_pr_exp

Conversation

@mmichel11
Copy link
Copy Markdown
Contributor

Introduces UR graph spec and implementation for urQueueGetGraphExp which returns graph handles from a recording queue. The following changes are made:

  • A map of L0 to UR graph handles is made to fetch UR graph handles from across command lists. This allows UR to fetch the correct graph handle if created by a separate command list manager due to fork-join. Map is stored in the context and protected by a lock.
  • Map entries are added and removed in graph creation and destruction respectively.
  • In implicit recording mode (where the user makes no urGraphCreateExp call), graph handle creation is done in the first instance of urQueueGetGraphExp (if it occurs) instead of urQueueEndCaptureExp as the user must be returned a ur_exp_graph_handle_t.

@mmichel11 mmichel11 force-pushed the matt/ur_get_graph_pr_exp branch from 8f6d377 to 5aacc60 Compare April 19, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant