summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorJuan Manuel Martinez CaamaƱo <jmartinezcaamao@gmail.com>2025-11-12 11:44:55 +0100
committerGitHub <noreply@github.com>2025-11-12 10:44:55 +0000
commita276624b2e34bfea36dd472ffc71bb4f78bbd39a (patch)
treed3db13c2579e26099ba5bbb036e2c3e23ce6929c /runtimes
parentd5388c31ae13261fa1579afdca54296d199d2b86 (diff)
[SPIRV][SPIRVPrepareGlobals] Map AMD's dynamic LDS 0-element globals to arrays with UINT32_MAX elements (#166952)
In HIP, dynamic LDS variables are represented using `0-element` global arrays in the `__shared__` language address-space. ```cpp extern __shared__ int LDS[]; ``` These are not representable in SPIRV directly. To represent them, for AMD, we use an array with `UINT32_MAX`-elements. These are reverse translated to 0-element arrays later in AMD's SPIRV runtime pipeline (in [SPIRVReader.cpp](https://github.com/ROCm/SPIRV-LLVM-Translator/blob/8cb74e264ddcde89f62354544803dc8cdbac148d/lib/SPIRV/SPIRVReader.cpp#L358)).
Diffstat (limited to 'runtimes')
0 files changed, 0 insertions, 0 deletions