[all-commits] [llvm/llvm-project] 25d723: [AMDGPU] Add .uniform_work_group_size metadata to v5
vangthao95 via All-commits
all-commits at lists.llvm.org
Thu Jan 5 13:31:19 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 25d72330ff8b4257a1c1729d5ec448f0f27dd18a
https://github.com/llvm/llvm-project/commit/25d72330ff8b4257a1c1729d5ec448f0f27dd18a
Author: Vang Thao <Vang.Thao at amd.com>
Date: 2023-01-05 (Thu, 05 Jan 2023)
Changed paths:
M llvm/docs/AMDGPUUsage.rst
M llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.h
A llvm/test/CodeGen/AMDGPU/hsa-metadata-uniform-workgroup-size-v5.ll
Log Message:
-----------
[AMDGPU] Add .uniform_work_group_size metadata to v5
Amdgpu kernel with function attribute "uniform-work-group-size"="true" requires
uniform work group size (i.e. each dimension of global size is a multiple of
corresponding dimension of work group size). hipExtModuleLaunchKernel allows to
launch HIP kernel with non-uniform workgroup size, which makes it necessary for
runtime to check and enforce uniform workgroup size if kernel requires it. To
let runtime be able to enforce that, this metadata is needed to indicate that
the kernel requires uniform workgroup size.
Reviewed By: kzhuravl, arsenm
Differential Revision: https://reviews.llvm.org/D141012
More information about the All-commits
mailing list