Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Is there a way to determine the number of GPU cores available for a compute shader at runtime?

$
0
0

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.

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>