- Home /
Is there a way to determine the number of GPU cores available for a compute shader at runtime?
I'm playing around with Compute Shaders and I'd like to make the application hardware aware.
For example, if the computer has a GPU with 2560 compute cores, I'd like the program to distribute the workload over at most 2560 threads so that they all get done in one "step". I don't want to assign 2561 threads because that would take two "steps" where the second step takes just as long as the first, but is barely utilizing the GPU.
Your answer
![](https://koobas.hobune.stream/wayback/20220613060716im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GPU instancing and collision detection in flocking behaviour simulation 0 Answers
3D array flattening / unflattening to / from compute shader 1 Answer
Compute Shader not work on older GPU with DX11 0 Answers
Custom colliders on the GPU 0 Answers
[Compute Shader] Porting an Image Effect Shader - Kuwahara Filter 2 Answers