From 31c73859a247f6d53a196943e15e17856d45ea9a Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Sat, 18 Jan 2020 18:23:46 -0500 Subject: [PATCH] fix #34415, remove affinity setting code This was removed before and added back apparently by mistake. --- src/init.c | 12 ------------ src/julia_internal.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/init.c b/src/init.c index b8f668d023372..6b55e45ea4733 100644 --- a/src/init.c +++ b/src/init.c @@ -698,18 +698,6 @@ void _julia_init(JL_IMAGE_SEARCH rel) } #endif -#if defined(__linux__) - int ncores = jl_cpu_threads(); - if (ncores > 1) { - cpu_set_t cpumask; - CPU_ZERO(&cpumask); - for(int i=0; i < ncores; i++) { - CPU_SET(i, &cpumask); - } - sched_setaffinity(0, sizeof(cpu_set_t), &cpumask); - } -#endif - if ((jl_options.outputo || jl_options.outputbc) && (jl_options.code_coverage || jl_options.malloc_log)) { jl_error("cannot generate code-coverage or track allocation information while generating a .o or .bc output file"); diff --git a/src/julia_internal.h b/src/julia_internal.h index 9c134512c5693..95b818753a8e4 100644 --- a/src/julia_internal.h +++ b/src/julia_internal.h @@ -8,7 +8,6 @@ #include #if !defined(_MSC_VER) && !defined(__MINGW32__) #include -#include #else #define sleep(x) Sleep(1000*x) #endif