You may start this by recognizing the processor type using IPP functions, each type has its pre-known features and number of cores.
Please check the following thread:
also, please check the following articles:
1) Is there an IPP function to detect the processor type?
2) IPP Dispatcher Control Functions - ipp*Init*() functions
3) Understanding CPU Dispatching in the Intel IPP