35 #ifndef _BLAZE_MATH_SMP_OPENMP_FUNCTIONS_H_
36 #define _BLAZE_MATH_SMP_OPENMP_FUNCTIONS_H_
70 return omp_get_max_threads();
92 throw std::invalid_argument(
"Invalid number of threads" );
94 omp_set_num_threads( number );
void setNumThreads(size_t number)
Sets the number of threads to be used for thread parallel operations.
Definition: Functions.h:95
System settings for the shared-memory parallelization.
void shutDownThreads()
Provides a reliable shutdown of C++11 threads for Visual Studio compilers.
Definition: Functions.h:126
#define BLAZE_OPENMP_PARALLEL_MODE
Compilation switch for the OpenMP parallelization.This compilation switch enables/disables the OpenMP...
Definition: SMP.h:67
size_t getNumThreads()
Returns the number of threads used for thread parallel operations.
Definition: Functions.h:75
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.In case of an invalid compile time expression, a compilation error is cr...
Definition: StaticAssert.h:143