dalibocai
dalibocai

Reputation: 2347

How to get compute unit ID at runtime in OpenCL?

Is there a way to get the compute unit ID a work group is running on during runtime? I know that CUDA has some assembly code to do this.

Upvotes: 0

Views: 313

Answers (1)

chippies
chippies

Reputation: 1615

No, there isn't a way to get the compute unit's ID. Your code should use the work group ID instead. What are you trying to achieve?

I am a little surprised that CUDA supports this, please tell me which assembly code instruction does this.

Upvotes: 1

Related Questions