treelite
omp.h
Go to the documentation of this file.
1 
7 #ifndef TREELITE_OMP_H_
8 #define TREELITE_OMP_H_
9 
10 #ifdef TREELITE_OPENMP_SUPPORT
11 #include <omp.h>
12 #else
13 inline int omp_get_thread_num() {
14  return 0;
15 }
16 
17 inline int omp_get_max_threads() {
18  return 1;
19 }
20 #endif // TREELITE_OPENMP_SUPPORT
21 
22 #endif // TREELITE_OMP_H_
compatiblity wrapper for systems that don&#39;t support OpenMP