Skip to content

feat(cambricon): enable TaskTopo graph capture - #1434

Open
gongchensu wants to merge 1 commit into
InfiniTensor:issue/1373from
gongchensu:fix/cambricon-tasktopo-capture-issue1373
Open

feat(cambricon): enable TaskTopo graph capture#1434
gongchensu wants to merge 1 commit into
InfiniTensor:issue/1373from
gongchensu:fix/cambricon-tasktopo-capture-issue1373

Conversation

@gongchensu

Copy link
Copy Markdown
Collaborator

Avoid queue synchronization while CNRT is capturing, while preserving the synchronous eager-execution contract outside capture.

Record descriptor-owned metadata with cnrtMemcpyAsync_V2 and pass temporary elementwise input pointers as kernel arguments so captured graphs can safely reuse frozen workspaces across batch shapes.

Initialize the Cambricon runtime and freeze cached allocations when they become visible to captured graphs so memory trimming cannot invalidate recorded pointers.

Avoid queue synchronization while CNRT is capturing, while preserving the synchronous eager-execution contract outside capture.

Record descriptor-owned metadata with cnrtMemcpyAsync_V2 and pass temporary elementwise input pointers as kernel arguments so captured graphs can safely reuse frozen workspaces across batch shapes.

Initialize the Cambricon runtime and freeze cached allocations when they become visible to captured graphs so memory trimming cannot invalidate recorded pointers.
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