Skip to content

Commit

Permalink
fix bug for cpu count
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyongyoo committed Nov 8, 2019
1 parent 1b6b82a commit c1a45ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/recognicer
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/recognicer_df
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/sicer
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/sicer_df
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1a45ab

Please sign in to comment.