Skip to content

[Feature Request] [Pass] InjectDmaBarrier #35

@firefrogliu666

Description

@firefrogliu666

Required prerequisites

  • I have searched the Issue Tracker that this hasn't already been reported. (comment there if it has.)

Motivation

InjectDmaBarrier automatily insert mbarriers that protect a Dma's src/dest buffers before the Dma operation is completed. We can adapt the existing InjectTmaBarrier pass structure to write our own InjectDmaBarrier pass:

  • Remove the thread logic. Remove thread extent tracking and warp specialization checks
  • Collect DMA operations that need synchronization
  • Map them to barrier IDs

Solution

No response

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions