reformat OpenMPWrapper.h
This commit is contained in:
parent
bf5d83d228
commit
dee3529f14
@ -29,13 +29,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#define OPENMP_WRAPPER_H
|
#define OPENMP_WRAPPER_H
|
||||||
|
|
||||||
#ifdef _OPENMP
|
#ifdef _OPENMP
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
inline int omp_get_num_procs () { return 1; }
|
inline int omp_get_num_procs() { return 1; }
|
||||||
inline int omp_get_max_threads () { return 1; }
|
inline int omp_get_max_threads() { return 1; }
|
||||||
inline int omp_get_thread_num () { return 0; }
|
inline int omp_get_thread_num() { return 0; }
|
||||||
inline void omp_set_num_threads (int i) {}
|
inline void omp_set_num_threads(int i) {}
|
||||||
#endif /* _OPENMP */
|
#endif // _OPENMP
|
||||||
#endif /* OPEN_MP_WRAPPER_H */
|
#endif // OPENMP_WRAPPER_H
|
||||||
|
Loading…
Reference in New Issue
Block a user