[cfe-dev] How to compile OpenCL kernel functions?

Dongrui She sarevokcc at gmail.com
Mon Oct 3 04:36:58 PDT 2011


Hi All,

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!
-- 
Regards,
Dongrui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111003/d46a27ad/attachment.html>


More information about the cfe-dev mailing list