7 #ifndef TREELITE_OMP_H_ 8 #define TREELITE_OMP_H_ 10 #ifdef TREELITE_OPENMP_SUPPORT 16 inline int omp_get_thread_limit() {
17 return std::numeric_limits<int>::max();
19 #endif // defined(_MSC_VER) 21 #else // TREELITE_OPENMP_SUPPORT 25 inline int omp_get_thread_limit() {
29 inline int omp_get_thread_num() {
33 inline int omp_get_max_threads() {
37 inline int omp_get_num_procs() {
41 #endif // TREELITE_OPENMP_SUPPORT 43 #endif // TREELITE_OMP_H_ compatiblity wrapper for systems that don't support OpenMP