[PATCH] D32215: Updated PPCG Code Generation for OpenCL compatibility

Philipp Schaad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 22 10:17:32 PDT 2017


PhilippSchaad added a comment.

In https://reviews.llvm.org/D32215#734619, @jlebar wrote:

> > Additionally, all parameters have been adapted to be global pointers.
>
> FYI, the LLVM backend has a pass that converts kernel args to address space 1 -- it's not necessary for front-ends to do this.  Depending on what you're doing in these tests it may or may not be necessary -- I can't check because this patch was uploaded without context.


Oh, thanks for pointing that out! As long as the generated PTX kernel's arguments are annotated with .global it should do the trick.


Repository:
  rL LLVM

https://reviews.llvm.org/D32215





More information about the llvm-commits mailing list