use CPUSelect

This commit is contained in:
kalmarek 2018-01-04 10:47:00 +01:00
parent 122ebe92bf
commit 476d532d93
1 changed files with 2 additions and 6 deletions

8
MCG.jl
View File

@ -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"]