Leopard 上的 OpenCL 支持

发布于 2024-10-08 22:52:52 字数 453 浏览 0 评论 0原文

我想在我的软件中使用 OpenCL,但我运行的是 Leopard。

我稍后可能会更新到雪豹。同时我想开始使用 Leopard 中的 OpenCL。在 10.5 上进行设置很令人困惑:大多数 SDK 和文章都假设您必须使用 Snow Leopard。正如您所料,搜索“在 Leopard 上使用 OpenCL”是完全没有用的。

我从 nvidia 下载了 cuda 工具包、devdriver 和 gpucomputing SDK,但示例无法编译,因为找不到 OpenCL/opencl.h。 OpenCL 发行说明没有提到 MacOSX,所以我再次认为这是假设所有 Mac 用户都运行 Snow Leopard。

在哪里可以找到适用于 Mac OSX 10.5 的 OpenCL 包含文件和库? 或者,这只是浪费时间,我应该尽快去获取雪豹吗?

升级到 Snow Leopard 后,我希望我的软件支持 Leopard。这可能吗?

I want to use OpenCL in my software but I am running Leopard.

I will probably update to Snow Leopard later. In the mean time I would like to get started with OpenCL in Leopard. Setting up on 10.5 is confusing: most SDKs and articles assume that you must be using Snow Leopard. Searching for "Using OpenCL on Leopard" is completely useless, as you would expect.

I downloaded the cuda toolkit, devdriver and gpucomputing SDK from nvidia but the examples won't compile because OpenCL/opencl.h is not found. The OpenCL release notes don't mention MacOSX so again I think this is assuming that all Mac users are running Snow Leopard.

Where can I find OpenCL includes and libraries for Mac OSX 10.5 ?
Or, is this just a waste of time and I should go and get Snow Leopard ASAP ?

After upgrading to Snow Leopard I would like my software to support Leopard. Is this possible ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凶凌 2024-10-15 22:52:52

我相信编译 OpenCL 代码所需的标头包含在 Nvidia GPU 计算 SDK 中(路径类似于 NVIDIA_GPU_Computing_SDK/OpenCL/common/inc/CL)。您可以将它们复制或链接到编译器查找包含内容的目录(Linux 上的 /usr/include/CL/,Mac 上不确定)。或者,您可以从 khronos.org/registry/cl 获取标头。这些库本身应该包含在 SDK 或 cuda 工具包中(我不记得是哪个)。

I believe the headers necessary to compile OpenCL code are included with the Nvidia GPU Computing SDK (path is something like NVIDIA_GPU_Computing_SDK/OpenCL/common/inc/CL). You could copy or link these into the directory where your compiler looks for includes (/usr/include/CL/ on Linux, not sure for Mac). Alternatively, you could get the headers from khronos.org/registry/cl. The libraries themselves should be included with either the SDK or the cuda toolkit (I don't recall which).

柠檬色的秋千 2024-10-15 22:52:52

您需要升级到 Snow Leopard。另请注意,OpenCL 确实还没有准备好在任何平台上进行“黄金时间”软件开发。 CUDA 比 OpenCL 成熟得多,如果您想在不久的将来开发和部署依赖于 GPGPU 的软件,您应该考虑使用 CUDA 而不是 OpenCL。

You will need to upgrade to Snow Leopard. Also note that OpenCL really isn't ready for "prime time" software development on any platform yet. CUDA is much more mature than OpenCL and you should consider using CUDA rather than OpenCL if you want to develop and deploy GPGPU-dependent software in the near future.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文