use CPUSelect
This commit is contained in:
parent
122ebe92bf
commit
476d532d93
8
MCG.jl
8
MCG.jl
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user