Add hidden kernel argument "hidden_dynamic_lds_size" to CO v5.
This argument will have the size of dynamic LDS memory allocated by hip runtime to the kernel.
Paths
| Differential D158150
[AMDGPU] Add dynamic LDS size implicit kernel argument to v5 Needs RevisionPublic Authored by skc7 on Aug 17 2023, 12:18 AM.
Details
Diff Detail
Unit TestsFailed
Event Timelineskc7 retitled this revision from [WIP] Add dynamic LDS implicit argument to v5 to [WIP] Add dynamic LDS size implicit argument to v5.Aug 17 2023, 2:05 AM Comment Actions Why do we need this? I thought this was already available in the dispatch packet, you just need to subtract the statically known size
Comment Actions
For ASAN LDS support, we want runtime to place to dynamic LDS size as hidden kernel argument. This is the approach we assume might work. (considering if recycling of dispatch pointer would be done in future runtime version) Comment Actions
With code object v5 we eliminated the need for the dispatch packet pointer and don't want to bring it back. skc7 retitled this revision from [WIP] Add dynamic LDS size implicit argument to v5 to [AMDGPU] Add dynamic LDS size implicit argument to v5.Aug 17 2023, 7:45 AM Herald added subscribers: tpr, dstuttard, yaxunl, kzhuravl. · View Herald TranscriptAug 17 2023, 7:45 AM
skc7 retitled this revision from [AMDGPU] Add dynamic LDS size implicit argument to v5 to [AMDGPU] Add dynamic LDS size implicit kernel argument to v5. Comment ActionsUpdate alignment for int32 type lds_size argument Comment Actions Discussed not bothering defining metadata when this is implied to the runtime by using dynamic LDS This revision now requires changes to proceed.Aug 23 2023, 3:01 PM
Revision Contents
Diff 551381 llvm/docs/AMDGPUUsage.rst
llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
llvm/test/CodeGen/AMDGPU/hsa-metadata-hidden-args-v5.ll
|
S/passes/passed