From dabeb2270e40becf0c93caaba9380d5160572544 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Tue, 27 Sep 2016 16:23:28 -0700 Subject: [PATCH] Fix for Python 3 incompatibility with os.cpu_count --- common/stage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/stage.py b/common/stage.py index 262f010..feef766 100644 --- a/common/stage.py +++ b/common/stage.py @@ -23,6 +23,7 @@ KLL Compiler Stage Definitions from multiprocessing.dummy import Pool as ThreadPool import io +import multiprocessing import os import re import sys @@ -222,7 +223,7 @@ class CompilerConfigurationStage( Stage ): super().__init__( control ) self.color = "auto" - self.jobs = os.cpu_count() + self.jobs = multiprocessing.cpu_count() self.pool = None # Build list of emitters