@@ -2222,11 +2222,11 @@ int __kmp_fork_call(ident_t *loc, int gtid,
22222222 } else
22232223// only one notification scheme (either "submit" or "forking/joined", not both)
22242224#endif /* USE_ITT_NOTIFY */
2225- if ((__itt_frame_begin_v3_ptr || KMP_ITT_DEBUG) &&
2226- __kmp_forkjoin_frames && !__kmp_forkjoin_frames_mode) {
2227- // Mark start of "parallel" region for Intel(R) VTune(TM) analyzer.
2228- __kmp_itt_region_forking (gtid, team->t .t_nproc , 0 );
2229- }
2225+ if ((__itt_frame_begin_v3_ptr || KMP_ITT_DEBUG) &&
2226+ __kmp_forkjoin_frames && !__kmp_forkjoin_frames_mode) {
2227+ // Mark start of "parallel" region for Intel(R) VTune(TM) analyzer.
2228+ __kmp_itt_region_forking (gtid, team->t .t_nproc , 0 );
2229+ }
22302230 }
22312231#endif /* USE_ITT_BUILD */
22322232
@@ -3276,7 +3276,7 @@ static void __kmp_initialize_root(kmp_root_t *root) {
32763276 __kmp_nested_proc_bind.bind_types [0 ], &r_icvs,
32773277 0 // argc
32783278 USE_NESTED_HOT_ARG (NULL ) // primary thread is unknown
3279- );
3279+ );
32803280#if USE_DEBUGGER
32813281 // Non-NULL value should be assigned to make the debugger display the root
32823282 // team.
@@ -3313,7 +3313,7 @@ static void __kmp_initialize_root(kmp_root_t *root) {
33133313 __kmp_nested_proc_bind.bind_types [0 ], &r_icvs,
33143314 0 // argc
33153315 USE_NESTED_HOT_ARG (NULL ) // primary thread is unknown
3316- );
3316+ );
33173317 KF_TRACE (10 , (" __kmp_initialize_root: after hot_team = %p\n " , hot_team));
33183318
33193319 root->r .r_hot_team = hot_team;
@@ -8707,7 +8707,8 @@ __kmp_determine_reduction_method(
87078707 KMP_DEBUG_ASSERT (lck); // it would be nice to test ( lck != 0 )
87088708
87098709#define FAST_REDUCTION_ATOMIC_METHOD_GENERATED \
8710- ((loc->flags & (KMP_IDENT_ATOMIC_REDUCE)) == (KMP_IDENT_ATOMIC_REDUCE))
8710+ (loc && \
8711+ ((loc->flags & (KMP_IDENT_ATOMIC_REDUCE)) == (KMP_IDENT_ATOMIC_REDUCE)))
87118712#define FAST_REDUCTION_TREE_METHOD_GENERATED ((reduce_data) && (reduce_func))
87128713
87138714 retval = critical_reduce_block;
0 commit comments