API Documentation
Loading...
Searching...
No Matches
OpenMP.hpp
Go to the documentation of this file.
1#pragma once
2namespace NDEVR
3{
4 /**----------------------------------------------------------------------------
5 \brief Dummy class for including OpenMP macros
6 https://www.openmp.org/
7 */
8 class OpenMP
9 {};
10}
11#ifdef _WIN32
12#define NDEVR_USE_OPEN_MP 1
13#else
14#define NDEVR_USE_OPEN_MP 0
15#endif
16#if NDEVR_USE_OPEN_MP
17#define _parallel_for __pragma(omp parallel for) \
18 for
19#define _parallel_for_if(if_statement, for_a, for_b, for_c) __pragma(omp parallel for if(if_statement)) \
20 for(for_a, for_b, for_c)
21#else
22#define _parallel_for for
23#endif
Dummy class for including OpenMP macros https://www.openmp.org/.
Definition OpenMP.hpp:9
Definition ACIColor.h:37