且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

OpenCL内核等待/延迟

更新时间:2022-02-01 15:07:09

OpenCL规范旨在处理数据.不用于等待/睡眠.即使您可以实现它,您也将违反许多OpenCL的良好设计规则.

The OpenCL spec is designed for data crunching. Not for wait/sleeps. Even if you may achieve it, you will be breaking a lot of the good design rules of OpenCL.

实际上,如果您尝试使它们休眠,许多GPU将会崩溃或终止执行.

In fact, many GPUs will crash or kill the execution if you try to sleep them.

请重新考虑您的需求,以及是否适合并行计算.

Please reconsider what you need, and if it is suitable for parallel computing.