GPUOpen-LibrariesAndSDKs / cpu-core-counts

A sample demonstrating how to correctly detect physical core and logical processor counts on AMD processors.
MIT License
55 stars 13 forks source link

CPU core counts

This self-contained code sample shows you how to correctly detect physical core and logical processor counts on AMD processors. The sample also makes recommendations about the default thread pool size you should create for game initialization and game execution, on AMD processors.

That recommendation is guidance only. Always profile and fit the thread pool size appropriately for your game's uses, since overall processor performance in games is affected by many factors.

How to build the sample on Windows

If you spot a bug, need any guidance, or would like to see the samples evolve in a particular way, file an issue and we'll take a look!

Changelog

These self-contained code samples show you how to correctly detect physical and logical processor core counts.

Supported operating systems

Support and suggestions

If you spot a bug, or would like to see the samples evolve in a particular way, file an issue and we'll take a look!