[cfe-dev] How to compile OpenCL kernel functions?
sarevokcc at gmail.com
Mon Oct 3 04:36:58 PDT 2011
I am trying to use Clang (trunk version) to compile some OpenCL kernels.
I'm confused about how the the OpenCL address space is handled.
The test case "clang/test/CodeGenOpenCL/address-spaces.cl" uses
"-ffake-address-space-map" and it can pass when I use llvm-lit.
But when I try to compile it, clang gives a warning
that "-ffake-address-space-map" is not used, and in the generated IR, and it
seems that all the pointers are treated as "normal" pointers.
Can someone give me some advice?
Or maybe point me to the right documentation.
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev