19#pragma GCC diagnostic ignored "-Wunknown-pragmas"
24#define omp_get_thread_num() 0
25#define omp_get_max_threads() 1
26#define omp_get_num_threads() 1
33 return use_omp ?
"Using OpenMP with " +
34 std::to_string(omp_get_max_threads()) +
" threads." :
General-purpose utility library.
Definition Array.hpp:23
constexpr bool use_omp
True if compiled with OpenMP support, false otherwise.
Definition omp.hpp:22
std::string omp_details()
Returns a short string describing the threading status, e.g. "Using OpenMP with 8 threads....
Definition omp.hpp:32