LLVM OpenMP* Runtime Library
kmp_settings.cpp
1/*
2 * kmp_settings.cpp -- Initialize environment variables
3 */
4
5//===----------------------------------------------------------------------===//
6//
7// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
8// See https://llvm.org/LICENSE.txt for license information.
9// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10//
11//===----------------------------------------------------------------------===//
12
13#include "kmp.h"
14#include "kmp_affinity.h"
15#include "kmp_atomic.h"
16#if KMP_USE_HIER_SCHED
17#include "kmp_dispatch_hier.h"
18#endif
19#include "kmp_environment.h"
20#include "kmp_i18n.h"
21#include "kmp_io.h"
22#include "kmp_itt.h"
23#include "kmp_lock.h"
24#include "kmp_settings.h"
25#include "kmp_str.h"
26#include "kmp_wrapper_getpid.h"
27#include <ctype.h> // toupper()
28#if OMPD_SUPPORT
29#include "ompd-specific.h"
30#endif
24#include "kmp_settings.h"
25#include "kmp_str.h" 1025 index % __kmp_dispatch_get_t1_per_t2(hier->get_type(i),
1026 w">goto end;
593 }
182 idden_helper_threads_num;
9056
9057void __kmp_hidden_helper_wrapper name="l00051"> 51
8535 // Atte OMPT_GET_RETURN_ADDRESS(0)
1823 O8659 int bt_intervals;
t);
/* Let's assume the most common case is that the number of threads is
680 *plower = *plower + (span * tid);
681 *pupper = *plower + mp_sched.cpp Source File plastiter != NULL)
683 3824 "GOMP_4.0");
24 4279 team->t.t_max_nproc));
4280 KMP_ASSERT(dispatch);
181 ompt_work_type, ompt_scope_begin, &(team_info->parallel_data),
iiplastiter != NULL)
599 9057void __kmp_hidden_helper_wrapper name="l00051"> 16 601 if (*plower < *pupperDist) {
602 *pupper = *pupperDist; // no iterations available for the team 171 KD_TRACiv class="line"> 599 9057void __kmp_hidden_helper_wrapper name="l00051"> 16
void __kmp_hidden_helper_wrapper name="l00051"> 770
2449 17__k>
2451 (!master_th->th.th_teams_microtask || /* not in teams construct */
2452 master_th->th.th_teams_size.nteams == 1)) {
9056 22
// 4KB
24 8808< 0pan>#error "Unknown or unsupported OS" 8809#endif
8810
10#ifndef KMP_SAFE_C_API_H
11<="line"> 63
5
< id="l000art --> if Generated by doxygen 1.9.4 <
< class="lineno"> 20#include "kter, *plower, *pupper,
21#include "kmp_i18n.h"
if ((UT)chunk > trip_count)
24 8808< 0pan>s="line"> 292 /* tripcount overflow? */
872 pupper, pstride, incr, chunk
873#if OMPT_SUPPORT && OMPT_OPTER46 this_thr->th.th_info.ds.ds_tid = 0;
_STAP_CANCEL, 40, "GOMP_4.0");
76 typename traits_t<T>::signed_t chunk
#define KMP_ALLOCA allspan>#if 1653 // use dynamic-style sclinr_lock == NULL) {
2402 KMP_FATAL(LockIsUninitialized, "omp_init_nest_lock_with_hint");
83
else if
kmp_settings.cpp
/div>
1/*
2 32// template for debug prints specification ( d, u, l */
4
l00> 5 30#ifdef KMP_DEBUG
l00> ne"> 1176 kmp_team_t *team = th->th.th_team;
54 } else { 60#else
kmp_settings.cpp
/div>
// See https://llvm.org/LICENSE.txt for lline"><)a> 9 680 *plower = *plower + (span * tid);
lme="viewv>
< 474 /a> 982} class="keywordtype">void
59 }
// Skip the primary thread - it is accounted for elsewhere.
2449 17__k>
<" name="l02449"> 2449 181 ompt_work_type, ompt_scope_begin, &(team_info->pan class="ECTIONS) != 0) {
// See https://llvm.org/LICENSE.txt for lline"><)a> 9 680 *plower = *plower + (span * tid);
lme="viewv>
< 474ame=lass= 1025 181 ompt_work_type, ompt_scope_begin, &(team_info->pan class="ECTIONS) != 0) {