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 insage.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 likefrom 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/32656Is 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+...@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.
On Tue, Jun 21, 2022 at 5:19 AM Dima Pasechnik <dim...@gmail.com> wrote:
>
> On Tue, Jun 21, 2022 at 4:06 AM Nils Bruin <nbr...@sfu.ca> wrote:
> >
> > Perhaps this message (see the thread it's in for context) applies to your situation?
> >
> > https://groups.google.com/g/sage-devel/c/ntuqDmruI8w/m/vJOv6mgqCgAJ
>
> this is outdated. However, it seems that the very old doc suggestion in
> sage/interfaces/gap.py
>
> import sage.interfaces.gap
> sage.interfaces.gap.gap_cmd = '<whatever> '
>
> could never have worked, as gap_cmd is hardcoded to "gap -r" (or whatever)
> and it cannot be overwritten like this.
>
> This is the question of the correct class interface design here, and
> I'm a bit lost.
> I think the value of gap_cmd can be set somewhere early (in sagerc?),
Can one just manually edit gap.sh in local/share/gap?
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAEQuuAUN5w5dmVWtYzs%2BZJRP1s4gYqTxeC4o6kRiFE_-b8Y-Fw%40mail.gmail.com.
Regards,
TB
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/550315df-fd50-b6c6-5202-9b2cfcee33a9%40gmail.com.