Skip to content

Commit

Permalink
Change addprocs limit to total_memory instead of free memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Aug 15, 2023
1 parent fd38d50 commit 5e3fb41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testenv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if !@isdefined(testenv_defined)
function addprocs_with_testenv(X; rr_allowed=true, kwargs...)
exename = rr_allowed ? `$rr_exename $test_exename` : test_exename
if X isa Integer
heap_size=round(Int,(Sys.free_memory()/(1024^2)/(X+1)))
heap_size=round(Int,(Sys.total_memory()/(1024^2)/(X+1)))
push!(test_exeflags.exec, "--heap-size-hint=$(heap_size)M")
end
addprocs(X; exename=exename, exeflags=test_exeflags, kwargs...)
Expand Down

0 comments on commit 5e3fb41

Please sign in to comment.