C++ 开始学习 OpenCL 教程?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17377465/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 21:08:46  来源:igfitidea点击:

Beginning OpenCL tutorials?

c++resourcescross-platformopenclgpu

提问by hddh

I have seen some videos and articles about how powerful OpenCL can be - and I'm hooked. The problem is there is a LOT less resources out there to help you with OpenCL then .. say OpenGL.

我看过一些关于 OpenCL 有多强大的视频和文章 - 我被迷住了。问题是有很多资源可以帮助您使用 OpenCL,然后说 OpenGL。

I am looking for some pointers to some beginning OpenCL (e.g. a Hello World tutorial) tutorials and some advanced tutorials as well when I get the hang of it.

我正在寻找一些指向一些 OpenCL 入门(例如 Hello World 教程)教程和一些高级教程的指针,当我掌握了它的窍门时。

Also - how 'cross platform' is OpenCL, how many different operating systems (e.g. Windows, Linux, iOS & Android) could I get an OpenCL program running on.

另外 - OpenCL 是如何“跨平台”的,我可以在多少种不同的操作系统(例如 Windows、Linux、iOS 和 Android)上运行 OpenCL 程序。

BTW: I would prefer tutorials on using OpenCL with C++ (not Java etc.) :-)

顺便说一句:我更喜欢在 C++ 中使用 OpenCL 的教程(不是 Java 等):-)

EDIT: If I were to start developing in OpenCL where would I need to go for downloads like headers & .lib files on a Windows system (On linux you just need to type sudo apt-get install opencl-dev & I think Mac OS X already has it installed?).

编辑:如果我要开始在 OpenCL 中开发,我需要在哪里下载 Windows 系统上的头文件和 .lib 文件(在 linux 上,您只需要键入 sudo apt-get install opencl-dev 并且我认为 Mac OS X已经安装了吗?)。

采纳答案by a.lasram

How 'cross platform' is OpenCL, how many different operating systems (e.g. Windows, Linux, iOS & Android) could I get an OpenCL program running on?

OpenCL 的“跨平台”如何,我可以在多少种不同的操作系统(例如 Windows、Linux、iOS 和 Android)上运行 OpenCL 程序?

OpenCL is open standard but mostly relies on a driver that a vendor develops for a specific hardware and operating system.

OpenCL 是开放标准,但主要依赖于供应商为特定硬件和操作系统开发的驱动程序。

To obtain drivers, c++ lib and information follow the links:

要获取驱动程序、c++ 库和信息,请访问以下链接:

Khronos

赫罗诺斯

AMD

AMD

AMD guide (beginner to relatively advanced)

AMD指南(初学者到比较高级)

Nvidia

英伟达

Nvidia guide (beginner to relatively advanced)+ CUDA (to learn more techniques for Nvidia GPUs)

Nvidia 指南(初学者到相对高级)+ CUDA(学习更多 Nvidia GPU 技术)

Mac

苹果电脑

Intel

英特尔

ARM

手臂

Samsung

三星

Qualcomm

高通