简体   繁体   English

OpenCL“多线程”示例

[英]OpenCL “multithreading” example

I'm trying to multi-thread with OpenCL, but I'm getting the sense that this is incorrect terminology. 我正在尝试使用OpenCL多线程,但是我感觉这是不正确的术语。

I have a simple C++ function, and I'd like to either continually send it with its parameters to the GPU or in batches. 我有一个简单的C ++函数,我想将其参数连续地或批量地发送给GPU。

What is a simple example of this, and what is the technical term? 这是一个简单的例子,什么是技术术语?

Multi-thread is not an incorrect terminology. 多线程不是一个错误的术语。 You can say porting your application on to GPU by using OpenCL. 您可以说使用OpenCL将应用程序移植到GPU上。

To start with you can install AMD APP SDK and go through an OpenCL sample called Template. 首先,您可以安装AMD APP SDK并完成一个名为Template的OpenCL示例。 This sample explains step-by-step procedure to use OpenCL. 此示例说明了使用OpenCL的分步过程。
The sample can also be found at https://github.com/clockfort/amd-app-sdk-fixes/tree/master/samples/opencl/cl/app/Template 该示例还可以在https://github.com/clockfort/amd-app-sdk-fixes/tree/master/samples/opencl/cl/app/Template中找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM