Mackey
V3.3
A C++ library for computing RO(G) graded homology
OpenMP_Macros.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
7
#if defined MACKEY_USE_OPEN_MP & defined _OPENMP
8
#include "omp.h"
10
#define MACKEY_RUN_LOOP_PARALLEL _Pragma("omp parallel for num_threads(omp_get_max_threads()) schedule(dynamic)"
)
11
#define MACKEY_RUN_BLOCK_SERIAL _Pragma("omp critical"
)
12
#pragma message ("mackey: openMP enabled!"
)
13
#else
15
#pragma message ("mackey: openMP not enabled! To enable, define macro MACKEY_USE_OPEN_MP before including any header of this library and use the compile option for openMP"
)
16
#define MACKEY_RUN_LOOP_PARALLEL
17
#define MACKEY_RUN_BLOCK_SERIAL
18
#endif