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

Set _WIN32_WINNT Macro #1

Open enpinion opened 6 years ago

enpinion commented 6 years ago

GetLogicalProcessorInformationEx() has been introduced as of Windows 7. Therefore, set _WIN32_WINNT macro to 0x0601 is required before including Windows.h and also compiler portability.