aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>2022-07-11 18:29:01 +0000
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>2022-08-02 20:58:34 +0000
commitc2fc8d9b95bd98acb52a3174ed677c2a85aafe4d (patch)
treeee89b5f1dbde73e8cb5472cabc2634bdbec3575f /llvm/unittests/Support/CommandLineTest.cpp
parent95a92995d45fc6fada43ecd91eba3e7aea90487a (diff)
downloadllvm-c2fc8d9b95bd98acb52a3174ed677c2a85aafe4d.zip
llvm-c2fc8d9b95bd98acb52a3174ed677c2a85aafe4d.tar.gz
llvm-c2fc8d9b95bd98acb52a3174ed677c2a85aafe4d.tar.bz2
[mlir][GPU] Allow bare pointer memrefs when calling GPU kernels
In the ROCm runtime (and probably CUDA as well), all kernel arguments are aligned. Therefore, enable using bare pointers for memref arguments to kernels when these memrefs have static shape and a trivial layout. This is a substantial optimization to launching kernels that use memrefs with known, static sizes, since it causes the kernel launch packet to no longer include information already known to the kernel, which can enable packing the kernel launch arguments into launch packets instead of having to allocate an entire separate structure to hold unneeded memref information. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D130716
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions