ROCm / ROCm-ComputeABI-Doc

ROCm - AMDGPU Compute Application Binary Interface
https://github.com/RadeonOpenCompute/ROCm-Docs/blob/master/AMDGPU-ABI.md
40 stars 12 forks source link

How to get work-group/thread-group/tile size? #7

Closed almson closed 8 years ago

almson commented 8 years ago

I see that enable_sgpr_workgroup_info records some sort of flat work group size, but I don't see anywhere how to get a per-dimension size.

nhaustov commented 8 years ago

Workgroup sizes are available in AQL dispatch packet which is defined in HSA SysArch specifcation (linked from the doc). The address of dispatch packet may be obtained through Dispatch Ptr sgpr (enable_sgpr_dispatch_ptr).