From c9c886efa1f4de037cb97d0b3cb530bce4af713f Mon Sep 17 00:00:00 2001 From: Shintaro Iwasaki Date: Mon, 7 Dec 2020 11:51:06 -0600 Subject: [PATCH] [BOLT] fix an affinity bug OMP_40_ENABLED is no longer used. This patch removes a branch that uses this macro. --- runtime/src/z_Linux_util.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/src/z_Linux_util.cpp b/runtime/src/z_Linux_util.cpp index 21d98139a..f30784297 100644 --- a/runtime/src/z_Linux_util.cpp +++ b/runtime/src/z_Linux_util.cpp @@ -1148,7 +1148,6 @@ void __kmp_abt_create_workers(kmp_team_t *team) { // Set up proc bind. kmp_proc_bind_t proc_bind = proc_bind_false; -#if OMP_40_ENABLED // Set up the affinity of the master thread. kmp_proc_bind_t team_proc_bind = team->t.t_proc_bind; if (team_proc_bind == proc_bind_default) { @@ -1159,7 +1158,6 @@ void __kmp_abt_create_workers(kmp_team_t *team) { } else if (team_proc_bind != proc_bind_intel) { proc_bind = team_proc_bind; } -#endif team->t.t_proc_bind_applied = proc_bind; // Obtain master place id.