Fix for Python 3 incompatibility with os.cpu_count
This commit is contained in:
parent
db89fd4830
commit
dabeb2270e
@ -23,6 +23,7 @@ KLL Compiler Stage Definitions
|
|||||||
from multiprocessing.dummy import Pool as ThreadPool
|
from multiprocessing.dummy import Pool as ThreadPool
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
@ -222,7 +223,7 @@ class CompilerConfigurationStage( Stage ):
|
|||||||
super().__init__( control )
|
super().__init__( control )
|
||||||
|
|
||||||
self.color = "auto"
|
self.color = "auto"
|
||||||
self.jobs = os.cpu_count()
|
self.jobs = multiprocessing.cpu_count()
|
||||||
self.pool = None
|
self.pool = None
|
||||||
|
|
||||||
# Build list of emitters
|
# Build list of emitters
|
||||||
|
Reference in New Issue
Block a user