diff options
author | Alex MacLean <amaclean@nvidia.com> | 2024-06-25 10:04:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 10:04:45 -0700 |
commit | 5c9513ac752fe33976a0a16a9e6d188b8200d3ae (patch) | |
tree | b22523042aa4b4d56df838052c0ff68d6f3078e2 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0258a60cd97c5d44b150a6c954f992b39a6c4f2f (diff) | |
download | llvm-5c9513ac752fe33976a0a16a9e6d188b8200d3ae.zip llvm-5c9513ac752fe33976a0a16a9e6d188b8200d3ae.tar.gz llvm-5c9513ac752fe33976a0a16a9e6d188b8200d3ae.tar.bz2 |
[NVPTX] cap param alignment at 128 (max supported by ptx) (#96117)
Cap the alignment to 128 bytes as that is the maximum alignment
supported by PTX. The restriction is mentioned in the parameter passing
section (Note D) of the [PTX Writer's Guide to Interoperability]
(https://docs.nvidia.com/cuda/ptx-writers-guide-to-interoperability/index.html#parameter-passing)
> D. The alignment must be 1, 2, 4, 8, 16, 32, 64, or 128 bytes.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions