From c1a45ab177091d104a41de59e738bfffa2f190c9 Mon Sep 17 00:00:00 2001 From: Jin Yong Yoo Date: Fri, 8 Nov 2019 18:11:43 -0500 Subject: [PATCH] fix bug for cpu count --- bin/recognicer | 2 +- bin/recognicer_df | 2 +- bin/sicer | 2 +- bin/sicer_df | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/recognicer b/bin/recognicer index 04cb8b8..532c32e 100644 --- a/bin/recognicer +++ b/bin/recognicer @@ -7,7 +7,7 @@ import os import sys curr_path = os.getcwd() -cpu_available = len(os.sched_getaffinity(0)) +cpu_available = os.cpu_count() - 1 #leave one core for I/O import subprocess import argparse diff --git a/bin/recognicer_df b/bin/recognicer_df index 09febfd..d927a8b 100644 --- a/bin/recognicer_df +++ b/bin/recognicer_df @@ -7,7 +7,7 @@ import os import sys curr_path = os.getcwd() -cpu_available = len(os.sched_getaffinity(0)) +cpu_available = os.cpu_count() - 1 #leave one core for I/O import subprocess import argparse diff --git a/bin/sicer b/bin/sicer index 28cabfe..57e1955 100755 --- a/bin/sicer +++ b/bin/sicer @@ -7,7 +7,7 @@ import os import sys curr_path = os.getcwd() -cpu_available = len(os.sched_getaffinity(0)) +cpu_available = os.cpu_count() - 1 #leave one core for I/O import subprocess import argparse diff --git a/bin/sicer_df b/bin/sicer_df index 649afda..ec2fb54 100755 --- a/bin/sicer_df +++ b/bin/sicer_df @@ -7,7 +7,7 @@ import os import sys curr_path = os.getcwd() -cpu_available = len(os.sched_getaffinity(0)) +cpu_available = os.cpu_count() - 1 #leave one core for I/O import subprocess import argparse