MCPcopy Create free account
hub / github.com/dmlc/xgboost / OmpGetThreadLimit

Function OmpGetThreadLimit

src/common/threading_utils.h:288–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288inline std::int32_t OmpGetThreadLimit() {
289 std::int32_t limit = omp_get_thread_limit();
290 CHECK_GE(limit, 1) << "Invalid thread limit for OpenMP.";
291 return limit;
292}
293
294/**
295 * @brief Get thread limit from CFS.

Callers 1

OmpGetNumThreadsFunction · 0.85

Calls 1

omp_get_thread_limitFunction · 0.85

Tested by

no test coverage detected