Skip to content

Commit

Permalink
fix #34415, remove affinity setting code
Browse files Browse the repository at this point in the history
This was removed before and added back apparently by mistake.
  • Loading branch information
JeffBezanson committed Jan 18, 2020
1 parent 372a7a7 commit 31c7385
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion src/julia_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <uv.h>
#if !defined(_MSC_VER) && !defined(__MINGW32__)
#include <unistd.h>
#include <sched.h>
#else
#define sleep(x) Sleep(1000*x)
#endif
Expand Down

0 comments on commit 31c7385

Please sign in to comment.