MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / CMP_NumberOfProcessors

Function CMP_NumberOfProcessors

cmp_framework/compute_base.cpp:838–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836}
837
838CMP_INT CMP_API CMP_NumberOfProcessors(void)
839{
840#ifndef _WIN32
841 return sysconf(_SC_NPROCESSORS_ONLN);
842#else
843 // Figure out how many cores there are on this machine
844 //SYSTEM_INFO sysinfo;
845 //GetSystemInfo(&sysinfo);
846 //return (sysinfo.dwNumberOfProcessors);
847 return GetMaximumProcessorCount(0);
848#endif
849}

Callers 5

oncurrentItemChangedMethod · 0.85
C_Application_OptionsMethod · 0.85
InitMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 2

mainFunction · 0.68
mainFunction · 0.68