Treelite
include
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_
omp.h
compatiblity wrapper for systems that don't support OpenMP
Generated by
1.8.13