English 中文(简体)
OpenCL工作组处理顺序
原标题:OpenCL order of work-group processing

我对OpenCL中的工作组处理有疑问。如果我有10个工作组,每个工作组有8个工作项。GPU上是否有严格的工作组处理顺序?工作组的处理范围是从1到10,还是工作组可能是随机处理的。

问题回答

You can t predict how the threads inside the kernel are going to be processed. You can only assure that inside a workgroup the threads will run more or less in sync, and you can use barriers.

如果您需要在所有线程中进行某种同步。也许是时候拥有两个独立的内核了,或者彻底改变内核的编码方式。





相关问题
Weighted random numbers

I m trying to implement a weighted random numbers. I m currently just banging my head against the wall and cannot figure this out. In my project (Hold em hand-ranges, subjective all-in equity ...

Comprehensive information about hash salts

There are a lot of questions about salts and best practices, however most of them simply answer very specific questions about them. I have several questions which feed into one another. Assuming a ...

Generate unique names?

I am working on a php site in which we have to upload images from users.i have to rename that file for preventing conflicts in the name of the image. uniqid(rand(), true); and adding a large random ...

How to get two random records with Django

How do I get two distinct random records using Django? I ve seen questions about how to get one but I need to get two random records and they must differ.

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

热门标签