Functions.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SMP_HPX_FUNCTIONS_H_
36 #define _BLAZE_MATH_SMP_HPX_FUNCTIONS_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <hpx/runtime/get_os_thread_count.hpp>
44 
45 #include <blaze/math/Exception.h>
46 #include <blaze/system/Inline.h>
47 #include <blaze/system/SMP.h>
49 #include <blaze/util/Types.h>
50 
51 
52 namespace blaze {
53 
54 //=================================================================================================
55 //
56 // SMP UTILITY FUNCTIONS
57 //
58 //=================================================================================================
59 
60 //*************************************************************************************************
72 {
73  return 4 * hpx::get_os_thread_count();
74 }
76 //*************************************************************************************************
77 
78 
79 //*************************************************************************************************
105 {}
107 //*************************************************************************************************
108 
109 
110 
111 
112 //=================================================================================================
113 //
114 // COMPILE TIME CONSTRAINTS
115 //
116 //=================================================================================================
117 
118 //*************************************************************************************************
120 namespace {
121 
123 
124 }
126 //*************************************************************************************************
127 
128 } // namespace blaze
129 
130 #endif
Header file for basic type definitions.
#define BLAZE_HPX_PARALLEL_MODE
Compilation switch for the HPX parallelization.This compilation switch enables/disables the paralleli...
Definition: SMP.h:148
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Compile time assertion.
System settings for the shared-memory parallelization.
Header file for the exception macros of the math module.
BLAZE_ALWAYS_INLINE void shutDownThreads()
Provides a reliable shutdown of C++11 threads for Visual Studio compilers.
Definition: Functions.h:128
#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:112
System settings for the inline keywords.
BLAZE_ALWAYS_INLINE size_t getNumThreads()
Returns the number of threads used for thread parallel operations.
Definition: Functions.h:77