According to https://ask.sagemath.org/question/61829/how-to-deal-with-gaperror-error-reached-the-pre-set-memory-limit/, try "sage.interfaces.gap.gap_cmd = 'gap -r -o 4G '".
On Monday, June 20, 2022 at 5:12:27 PM UTC-7 AlexGhitza wrote: > Hi, > > I'm trying to help out a friend who is computing automorphism groups of > lattices in Sage (using GAP under the hood). The computation is fairly > long and memory-intensive and eventually results in > > sage.libs.gap.util.GAPError: Error, reached the pre-set memory limit > (change it with the -o command line option) > > Apparently, until late last year, achieving the desired -o command line > option effect from within Sage was possible via something like > > from sage.interfaces.gap import get_gap_memory_pool_size, > set_gap_memory_pool_size > memory_gap = get_gap_memory_pool_size() > set_gap_memory_pool_size(9048*memory_gap) > > Now these functions are not available anymore, due to > https://trac.sagemath.org/ticket/32656 > > Is it possible to achieve the same effect via some alternative method? > > Best, > Alex > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/7f1922b7-afab-47cc-8cad-7a74708c5962n%40googlegroups.com.