use CPUSelect

This commit is contained in:
kalmarek 2018-01-04 10:47:00 +01:00
parent 122ebe92bf
commit 476d532d93

8
MCG.jl
View File

@ -55,16 +55,12 @@ function parse_commandline()
end end
include("FPGroups_GAP.jl") include("FPGroups_GAP.jl")
include("CPUselect.jl")
function main() function main()
parsed_args = parse_commandline() parsed_args = parse_commandline()
if parsed_args["cpus"] nothing set_parallel_mthread(parsed_args)
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
tol = parsed_args["tol"] tol = parsed_args["tol"]
iterations = parsed_args["iterations"] iterations = parsed_args["iterations"]