Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
smp
hpx
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
50
#include <
blaze/math/Exception.h
>
51
#include <
blaze/system/Inline.h
>
52
#include <
blaze/system/SMP.h
>
53
#include <
blaze/util/StaticAssert.h
>
54
#include <
blaze/util/Types.h
>
55
56
57
namespace
blaze {
58
59
//=================================================================================================
60
//
61
// SMP UTILITY FUNCTIONS
62
//
63
//=================================================================================================
64
65
//*************************************************************************************************
76
BLAZE_ALWAYS_INLINE
size_t
getNumThreads
()
77
{
78
return
4 * hpx::get_os_thread_count();
79
}
81
//*************************************************************************************************
82
83
84
//*************************************************************************************************
109
BLAZE_ALWAYS_INLINE
void
shutDownThreads
()
110
{}
112
//*************************************************************************************************
113
114
115
116
117
//=================================================================================================
118
//
119
// COMPILE TIME CONSTRAINTS
120
//
121
//=================================================================================================
122
123
//*************************************************************************************************
125
namespace
{
126
127
BLAZE_STATIC_ASSERT
(
BLAZE_HPX_PARALLEL_MODE
);
128
129
}
131
//*************************************************************************************************
132
133
}
// namespace blaze
134
135
#endif
StaticAssert.h
Compile time assertion.
blaze::getNumThreads
BLAZE_ALWAYS_INLINE size_t getNumThreads()
Returns the number of threads used for thread parallel operations.
Definition
Functions.h:77
blaze::shutDownThreads
BLAZE_ALWAYS_INLINE void shutDownThreads()
Provides a reliable shutdown of C++11 threads for Visual Studio compilers.
Definition
Functions.h:128
BLAZE_STATIC_ASSERT
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.
Definition
StaticAssert.h:112
BLAZE_ALWAYS_INLINE
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition
Inline.h:85
BLAZE_HPX_PARALLEL_MODE
#define BLAZE_HPX_PARALLEL_MODE
Compilation switch for the HPX parallelization.
Definition
SMP.h:96
Exception.h
Header file for the exception macros of the math module.
Inline.h
System settings for the inline keywords.
SMP.h
System settings for the shared-memory parallelization.
Types.h
Header file for basic type definitions.
Generated by
1.18.0