Skip to content

Commit

Permalink
gc hack for memory exhaustion
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamstark committed Sep 16, 2023
1 parent 8bc63f5 commit b80d3ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Runner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ module Runner
dump_frames( settings, frames )
end
observer[]= Progress( settings.uuid, "do-one-run-end", -99, -99, -99, -99 )
# FIXME. This should not be needed, but see: https://github.com/JuliaLang/julia/issues/50658 and the out-of-memory issues with the pppc server.
GC.gc()
return frames
end # do one run

Expand Down
4 changes: 3 additions & 1 deletion src/TheEqualiser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,11 @@ function equalise(
zerorun = ZeroProblem( run, 0.0 ) # fixme guess at 0.0 ?
rparams = RunParameters( sys, settings, base_cost, 0, target, observer )
incch = solve( zerorun, rparams )
# FIXME. This should not be needed, but see: https://github.com/JuliaLang/julia/issues/50658
GC.gc()
#
# TODO test incch is sensible
return incch
end

end # module
end # module

0 comments on commit b80d3ff

Please sign in to comment.