소스 검색

Fix for Python 3 incompatibility with os.cpu_count

dev
Jacob Alexander 7 년 전
부모
커밋
dabeb2270e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      common/stage.py

+ 2
- 1
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