如何使用clang编译OpenCL到ptx代码? [英] How to use clang to compile OpenCL to ptx code?

查看:245
本文介绍了如何使用clang编译OpenCL到ptx代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Clang 3.0能够将OpenCL编译为ptx,并使用Nvidia的工具在GPU上启动ptx代码。我该怎么办?请具体说明。

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.

推荐答案

请参阅 Justin Holewinski的博客的具体示例或此主题了解更多详细步骤和指向示例的链接。

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

这篇关于如何使用clang编译OpenCL到ptx代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆