bader wrote: > How does this attribute relate to `reqd_work_group_size` and related existing > attributes?
They seems to be different/"unrelated". Based on the description of the `amdgpu-num-work-groups` attribute it provides "number of work-groups", whereas `reqd_work_group_size` provides "number of work-items in a work-group". I think this attributed can be useful for other targets. The optimization ideas described in https://github.com/llvm/llvm-project/pull/75647#issuecomment-1863352459 seems to be generic. There is an RFC to unify some existing functionality exposing "grid" information: https://discourse.llvm.org/t/proposing-llvm-gpu-intrinsics/75374. This might fall into similar category. https://github.com/llvm/llvm-project/pull/75647 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits