MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / cpu_getNumOpenmpProcessors

Function cpu_getNumOpenmpProcessors

quest/src/cpu/cpu_config.cpp:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94int cpu_getNumOpenmpProcessors() {
95#if COMPILE_OPENMP
96 return omp_get_num_procs();
97#else
98 error_cpuThreadsQueriedButEnvNotMultithreaded();
99 return -1;
100#endif
101}
102
103
104

Callers 1

printCpuInfoFunction · 0.85

Tested by

no test coverage detected