Closed
[Requirement|需求建议]: 【AscendC样例】SIMT特性类——warp指令 #888
zhangshunwei2Add on  Jun 8Closed at  Jun 8
zhangshunwei2
zhangshunwei2Collaborators
Jun 8 Create

Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.

Backgroud(背景信息)

新增SIMT API使用样例,展示warp shfl函数和asc_ballot使用方式

Origin(信息来源)

无

Benefit / Necessity (价值/作用)

通过sobel算子对二维灰度图的像素点梯度幅值计算场景,展示用warp shfl指令完成一个warp内的线程交换寄存器数据,以及ballot实现按条件筛选数据的用法

Design(设计方案)

在sobel算子对二维图像中的像素点计算边缘幅值的场景下
1、warp内的线程使用shfl函数获取左右线程持有的像素值,完成目标像素点的幅值计算
2、对完成计算的幅值图,根据具体的阈值将满足条件的像素点紧凑输出,完成筛选

likedislike
zhangshunwei2zhangshunwei2Collaborators
Jun 8 Added label: requirement
zhangshunwei2zhangshunwei2Collaborators
Jun 8 Assign zhangshunwei2 as responsible person
zhangshunwei2zhangshunwei2Collaborators
Jun 8 Associated milestone: Ascend C Release Plan 2026Q2
zhangshunwei2
zhangshunwei2Collaborators
Jun 8 Comments:

计划完成时间2026/6/10

likedislike
zhangshunwei2zhangshunwei2Collaborators
Jun 8 Associated pull request
zhangshunwei2
zhangshunwei2Collaborators
Jun 8 Comments:

/close

likedislike
zhangshunwei2zhangshunwei2Collaborators
Jun 8 changed custom state from 待办的 to 已验收
zhangshunwei2zhangshunwei2Collaborators
Jun 8 Close issue
CANN-robotCANN-robotCollaborators
Jun 8 Added label: Accepted
CANN-robotCANN-robotCollaborators
Jun 8 Added label: resolved
终于成终于成Collaborators
6 days ago Associated pull request