Skip to content

Commit 794da52

Browse files
Merge pull request #89 from shintaro-iwasaki/2.0/FixAffinityIssue
[2.x] fix an affinity bug
2 parents ac8fff8 + 46e95c6 commit 794da52

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

runtime/src/z_Linux_util.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,6 @@ void __kmp_abt_create_workers(kmp_team_t *team) {
11481148

11491149
// Set up proc bind.
11501150
kmp_proc_bind_t proc_bind = proc_bind_false;
1151-
#if OMP_40_ENABLED
11521151
// Set up the affinity of the master thread.
11531152
kmp_proc_bind_t team_proc_bind = team->t.t_proc_bind;
11541153
if (team_proc_bind == proc_bind_default) {
@@ -1159,7 +1158,6 @@ void __kmp_abt_create_workers(kmp_team_t *team) {
11591158
} else if (team_proc_bind != proc_bind_intel) {
11601159
proc_bind = team_proc_bind;
11611160
}
1162-
#endif
11631161
team->t.t_proc_bind_applied = proc_bind;
11641162

11651163
// Obtain master place id.

0 commit comments

Comments
 (0)