Blaze 3.9
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/config.hpp>
44#if HPX_VERSION_FULL >= 0x010500
45#include <hpx/runtime.hpp>
46#else
47#include <hpx/runtime/get_os_thread_count.hpp>
48#endif
49
51#include <blaze/system/Inline.h>
52#include <blaze/system/SMP.h>
54#include <blaze/util/Types.h>
55
56
57namespace blaze {
58
59//=================================================================================================
60//
61// SMP UTILITY FUNCTIONS
62//
63//=================================================================================================
64
65//*************************************************************************************************
77{
78 return 4 * hpx::get_os_thread_count();
79}
81//*************************************************************************************************
82
83
84//*************************************************************************************************
110{}
112//*************************************************************************************************
113
114
115
116
117//=================================================================================================
118//
119// COMPILE TIME CONSTRAINTS
120//
121//=================================================================================================
122
123//*************************************************************************************************
125namespace {
126
128
129}
131//*************************************************************************************************
132
133} // namespace blaze
134
135#endif
Compile time assertion.
BLAZE_ALWAYS_INLINE size_t getNumThreads()
Returns the number of threads used for thread parallel operations.
Definition: Functions.h:77
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.
Definition: StaticAssert.h:112
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
#define BLAZE_HPX_PARALLEL_MODE
Compilation switch for the HPX parallelization.
Definition: SMP.h:96
Header file for the exception macros of the math module.
System settings for the inline keywords.
System settings for the shared-memory parallelization.
Header file for basic type definitions.