All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SMP_DEFAULT_FUNCTIONS_H_
36 #define _BLAZE_MATH_SMP_DEFAULT_FUNCTIONS_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/system/SMP.h>
45 #include <blaze/util/Unused.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // SMP UTILITY FUNCTIONS
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
59 inline size_t getNumThreads ();
60 inline void setNumThreads ( size_t number );
61 inline void shutDownThreads();
63 //*************************************************************************************************
64 
65 
66 //*************************************************************************************************
75 inline size_t getNumThreads()
76 {
77  return 1UL;
78 }
79 //*************************************************************************************************
80 
81 
82 //*************************************************************************************************
95 inline void setNumThreads( size_t number )
96 {
97  UNUSED_PARAMETER( number );
98 }
99 //*************************************************************************************************
100 
101 
102 //*************************************************************************************************
126 inline void shutDownThreads()
127 {}
128 //*************************************************************************************************
129 
130 
131 
132 
133 //=================================================================================================
134 //
135 // COMPILE TIME CONSTRAINT
136 //
137 //=================================================================================================
138 
139 //*************************************************************************************************
141 namespace {
142 
145 
146 }
148 //*************************************************************************************************
149 
150 } // namespace blaze
151 
152 #endif
Header file for the UNUSED_PARAMETER function template.
void UNUSED_PARAMETER(const T1 &)
Suppression of unused parameter warnings.
Definition: Unused.h:84
void setNumThreads(size_t number)
Sets the number of threads to be used for thread parallel operations.
Definition: Functions.h:95
Compile time assertion.
System settings for the shared-memory parallelization.
#define BLAZE_CPP_THREADS_PARALLEL_MODE
Compilation switch for the C++11 parallelization.This compilation switch enables/disables the paralle...
Definition: SMP.h:95
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