Changeset View
Changeset View
Standalone View
Standalone View
openmp/trunk/runtime/src/kmp_dispatch.cpp
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | union shared_info_tmpl { | ||||
dispatch_shared_info64_t s64; | dispatch_shared_info64_t s64; | ||||
} u; | } u; | ||||
volatile kmp_uint32 buffer_index; | volatile kmp_uint32 buffer_index; | ||||
#if OMP_45_ENABLED | #if OMP_45_ENABLED | ||||
volatile kmp_int32 doacross_buf_idx; // teamwise index | volatile kmp_int32 doacross_buf_idx; // teamwise index | ||||
kmp_uint32 *doacross_flags; // array of iteration flags (0/1) | kmp_uint32 *doacross_flags; // array of iteration flags (0/1) | ||||
kmp_int32 doacross_num_done; // count finished threads | kmp_int32 doacross_num_done; // count finished threads | ||||
#endif | #endif | ||||
#if KMP_USE_HWLOC | |||||
// When linking with libhwloc, the ORDERED EPCC test slowsdown on big | |||||
// machines (> 48 cores). Performance analysis showed that a cache thrash | |||||
// was occurring and this padding helps alleviate the problem. | |||||
char padding[64]; | |||||
#endif | |||||
}; | }; | ||||
/* ------------------------------------------------------------------------ */ | /* ------------------------------------------------------------------------ */ | ||||
/* ------------------------------------------------------------------------ */ | /* ------------------------------------------------------------------------ */ | ||||
#undef USE_TEST_LOCKS | #undef USE_TEST_LOCKS | ||||
// test_then_add template (general template should NOT be used) | // test_then_add template (general template should NOT be used) | ||||
▲ Show 20 Lines • Show All 2,477 Lines • Show Last 20 Lines |