Hello all,
Is there a way to convert memrefs to bare pointers when generating GPU code?
I am using this pipeline, but it lowers memrefs into the base pointers and auxiliary data.
-gpu-greedily-parallel-loop-mapping
-convert-parallel-loops-to-gpu
-gpu-kernel-outlining
-lower-affine
-convert-scf-to-std
-pass-pipeline=gpu.module(strip-debuginfo,convert-gpu-to-nvvm,gpu-to-cubin)
-gpu-to-llvm
For CPU, I wrote a custom pass that calls populate*
functions with LowerToLLVMOptions.useBarePtrCallConv
set to true.
I wonder whether this approach would work for GPU as well.
Thanks in advance,