| 286 | } |
| 287 | |
| 288 | inline 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. |
no test coverage detected