How to use clang to compile OpenCL to ptx code?

后端 未结 3 707
北恋
北恋 2021-02-02 00:31

Clang 3.0 is able to compile OpenCL to ptx and use Nvidia\'s tool to launch the ptx code on GPU. How can I do this? Please be specific.

3条回答
  •  天命终不由人
    2021-02-02 01:00

    See Justin Holewinski's blog for a specific example or this thread for some more detailed steps and links to samples.

提交回复
热议问题