tbb_config.h Source File

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# tbb_config.h

    00001 /*
    00002     Copyright 2005-2010 Intel Corporation.  All Rights Reserved.
    00003
    00004     The source code contained or described herein and all documents related
    00005     to the source code ("Material") are owned by Intel Corporation or its
    00006     suppliers or licensors.  Title to the Material remains with Intel
    00007     Corporation or its suppliers and licensors.  The Material is protected
    00008     by worldwide copyright laws and treaty provisions.  No part of the
    00009     Material may be used, copied, reproduced, modified, published, uploaded,
    00010     posted, transmitted, distributed, or disclosed in any way without
    00011     Intel's prior express written permission.
    00012
    00013     No license under any patent, copyright, trade secret or other
    00014     intellectual property right is granted to or conferred upon you by
    00015     disclosure or delivery of the Materials, either expressly, by
    00016     implication, inducement, estoppel or otherwise.  Any license under such
    00017     intellectual property rights must be express and approved by Intel in
    00018     writing.
    00019 */
    00020
    00021 #ifndef __TBB_tbb_config_H
    00022 #define __TBB_tbb_config_H
    00023
    00033 #ifndef TBB_USE_DEBUG
    00034 #ifdef TBB_DO_ASSERT
    00035 #define TBB_USE_DEBUG TBB_DO_ASSERT
    00036 #else
    00037 #define TBB_USE_DEBUG 0
    00038 #endif /* TBB_DO_ASSERT */
    00039 #else
    00040 #define TBB_DO_ASSERT TBB_USE_DEBUG
    00041 #endif /* TBB_USE_DEBUG */
    00042
    00043 #ifndef TBB_USE_ASSERT
    00044 #ifdef TBB_DO_ASSERT
    00045 #define TBB_USE_ASSERT TBB_DO_ASSERT
    00046 #else
    00047 #define TBB_USE_ASSERT TBB_USE_DEBUG
    00048 #endif /* TBB_DO_ASSERT */
    00049 #endif /* TBB_USE_ASSERT */
    00050
    00051 #ifndef TBB_USE_THREADING_TOOLS
    00052 #ifdef TBB_DO_THREADING_TOOLS
    00053 #define TBB_USE_THREADING_TOOLS TBB_DO_THREADING_TOOLS
    00054 #else
    00055 #define TBB_USE_THREADING_TOOLS TBB_USE_DEBUG
    00056 #endif /* TBB_DO_THREADING_TOOLS */
    00057 #endif /* TBB_USE_THREADING_TOOLS */
    00058
    00059 #ifndef TBB_USE_PERFORMANCE_WARNINGS
    00060 #ifdef TBB_PERFORMANCE_WARNINGS
    00061 #define TBB_USE_PERFORMANCE_WARNINGS TBB_PERFORMANCE_WARNINGS
    00062 #else
    00063 #define TBB_USE_PERFORMANCE_WARNINGS TBB_USE_DEBUG
    00064 #endif /* TBB_PEFORMANCE_WARNINGS */
    00065 #endif /* TBB_USE_PERFORMANCE_WARNINGS */
    00066
    00067 #if !defined(__EXCEPTIONS) && !defined(_CPPUNWIND) && !defined(__SUNPRO_CC) || defined(_XBOX)
    00068     #if TBB_USE_EXCEPTIONS
    00069         #error Compilation settings do not support exception handling. Please do not set TBB_USE_EXCEPTIONS macro or set it to 0.
    00070     #elif !defined(TBB_USE_EXCEPTIONS)
    00071         #define TBB_USE_EXCEPTIONS 0
    00072     #endif
    00073 #elif !defined(TBB_USE_EXCEPTIONS)
    00074     #define TBB_USE_EXCEPTIONS 1
    00075 #endif
    00076
    00077 #ifndef TBB_IMPLEMENT_CPP0X
    00078
    00079     #if __GNUC__==4 && __GNUC_MINOR__>=4 && __GXX_EXPERIMENTAL_CXX0X__
    00080         #define TBB_IMPLEMENT_CPP0X 0
    00081     #else
    00082         #define TBB_IMPLEMENT_CPP0X 1
    00083     #endif
    00084 #endif /* TBB_IMPLEMENT_CPP0X */
    00085
    00088 #ifndef __TBB_COUNT_TASK_NODES
    00089     #define __TBB_COUNT_TASK_NODES TBB_USE_ASSERT
    00090 #endif
    00091
    00092 #ifndef __TBB_TASK_GROUP_CONTEXT
    00093     #define __TBB_TASK_GROUP_CONTEXT 1
    00094 #endif /* __TBB_TASK_GROUP_CONTEXT */
    00095
    00096 #ifndef __TBB_SCHEDULER_OBSERVER
    00097     #define __TBB_SCHEDULER_OBSERVER 1
    00098 #endif /* __TBB_SCHEDULER_OBSERVER */
    00099
    00100 #ifndef __TBB_ARENA_PER_MASTER
    00101     #define __TBB_ARENA_PER_MASTER 1
    00102 #endif /* __TBB_ARENA_PER_MASTER */
    00103
    00104 #if !defined(__TBB_SURVIVE_THREAD_SWITCH) && (_WIN32 || _WIN64 || __linux__)
    00105     #define __TBB_SURVIVE_THREAD_SWITCH 1
    00106 #endif /* __TBB_SURVIVE_THREAD_SWITCH */
    00107
    00108
    00109 /* TODO: The following condition should be extended as soon as new compilers/runtimes
    00110          with std::exception_ptr support appear. */
    00111 #define __TBB_EXCEPTION_PTR_PRESENT  (_MSC_VER >= 1600 || __GXX_EXPERIMENTAL_CXX0X__ && (__GNUC__==4 && __GNUC_MINOR__>=4))
    00112
    00113
    00114 #ifndef TBB_USE_CAPTURED_EXCEPTION
    00115     #if __TBB_EXCEPTION_PTR_PRESENT
    00116         #define TBB_USE_CAPTURED_EXCEPTION 0
    00117     #else
    00118         #define TBB_USE_CAPTURED_EXCEPTION 1
    00119     #endif
    00120 #else /* defined TBB_USE_CAPTURED_EXCEPTION */
    00121     #if !TBB_USE_CAPTURED_EXCEPTION && !__TBB_EXCEPTION_PTR_PRESENT
    00122         #error Current runtime does not support std::exception_ptr. Set TBB_USE_CAPTURED_EXCEPTION and make sure that your code is ready to catch tbb::captured_exception.
    00123     #endif
    00124 #endif /* defined TBB_USE_CAPTURED_EXCEPTION */
    00125
    00126
    00127 #ifndef __TBB_DEFAULT_PARTITIONER
    00128 #if TBB_DEPRECATED
    00129
    00130 #define __TBB_DEFAULT_PARTITIONER tbb::simple_partitioner
    00131 #else
    00132
    00133 #define __TBB_DEFAULT_PARTITIONER tbb::auto_partitioner
    00134 #endif /* TBB_DEFAULT_PARTITIONER */
    00135 #endif /* !defined(__TBB_DEFAULT_PARTITIONER */
    00136
    00139 #if __GNUC__==4 && __GNUC_MINOR__>=4 && !defined(__INTEL_COMPILER)
    00140     #define __TBB_GCC_WARNING_SUPPRESSION_ENABLED 1
    00141 #endif
    00142
    00149 #if _MSC_VER && __INTEL_COMPILER && (__INTEL_COMPILER<1110 || __INTEL_COMPILER==1110 && __INTEL_COMPILER_BUILD_DATE < 20091012)
    00150
    00153     #define __TBB_DEFAULT_DTOR_THROW_SPEC_BROKEN 1
    00154 #endif
    00155
    00156 #if defined(_MSC_VER) && _MSC_VER < 1500 && !defined(__INTEL_COMPILER)
    00157
    00159     #define __TBB_TEMPLATE_FRIENDS_BROKEN 1
    00160 #endif
    00161
    00162 #if __GLIBC__==2 && __GLIBC_MINOR__==3 || __MINGW32__
    00164
    00165     #define __TBB_THROW_ACROSS_MODULE_BOUNDARY_BROKEN 1
    00166 #endif
    00167
    00168 #if (_WIN32||_WIN64) && __INTEL_COMPILER == 1110
    00169
    00170     #define __TBB_ICL_11_1_CODE_GEN_BROKEN 1
    00171 #endif
    00172
    00173 #if __GNUC__==3 && __GNUC_MINOR__==3 && !defined(__INTEL_COMPILER)
    00174
    00175     #define __TBB_GCC_3_3_PROTECTED_BROKEN 1
    00176 #endif
    00177
    00178 #if __MINGW32__ && (__GNUC__<4 || __GNUC__==4 && __GNUC_MINOR__<2)
    00179
    00181     #define __TBB_SSE_STACK_ALIGNMENT_BROKEN 1
    00182 #endif
    00183
    00184 #if __FreeBSD__
    00185
    00187     #define __TBB_PRIO_INHERIT_BROKEN 1
    00188
    00191     #define __TBB_PLACEMENT_NEW_EXCEPTION_SAFETY_BROKEN 1
    00192 #endif /* __FreeBSD__ */
    00193
    00194 #if (__linux__ || __APPLE__) && __i386__ && defined(__INTEL_COMPILER)
    00195
    00197     #define __TBB_ICC_ASM_VOLATILE_BROKEN 1
    00198 #endif
    00199
    00200 #endif /* __TBB_tbb_config_H */

Copyright © 2005-2010 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.