Eliminate double printing of verbose affinity settings
Redundant extra verbose output of binding to full mask in case affinity=balanced or OMP_PLACES=<any> or OMP_PROC_BIND=<any> Differential Revision: https://reviews.llvm.org/D40624 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@319960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4640,7 +4640,9 @@ void __kmp_affinity_set_init_mask(int gtid, int isa_root) {
|
||||
|
||||
KMP_CPU_COPY(th->th.th_affin_mask, mask);
|
||||
|
||||
if (__kmp_affinity_verbose) {
|
||||
if (__kmp_affinity_verbose
|
||||
/* to avoid duplicate printing (will be correctly printed on barrier) */
|
||||
&& (__kmp_affinity_type == affinity_none || i != KMP_PLACE_ALL)) {
|
||||
char buf[KMP_AFFIN_MASK_PRINT_LEN];
|
||||
__kmp_affinity_print_mask(buf, KMP_AFFIN_MASK_PRINT_LEN,
|
||||
th->th.th_affin_mask);
|
||||
|
||||
Reference in New Issue
Block a user