From 476d532d9360d0f235ed641322a253cdfca5a422 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Thu, 4 Jan 2018 10:47:00 +0100 Subject: [PATCH] use CPUSelect --- MCG.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MCG.jl b/MCG.jl index befeea8..fba925c 100644 --- a/MCG.jl +++ b/MCG.jl @@ -55,16 +55,12 @@ function parse_commandline() end include("FPGroups_GAP.jl") +include("CPUselect.jl") function main() parsed_args = parse_commandline() - if parsed_args["cpus"] ≠ nothing - if parsed_args["cpus"] > cpuinfo_physicalcores() - warn("Number of specified cores exceeds the physical core cound. Performance will suffer.") - end - BLAS.set_num_threads(parsed_args["cpus"]) - end + set_parallel_mthread(parsed_args) tol = parsed_args["tol"] iterations = parsed_args["iterations"]