Ask Your Question
0

increase GAP memory via Python script?

asked 2017-02-10 10:03:15 -0600

LouP gravatar image

I'm trying to find the automorphism group of a large network (roughly 5000 nodes). I get the following memory error message:

RuntimeError: Gap produced error output Error, reached the pre-set memory limit (change it with the -o command line option)

I'm running Sage in a Python script (i.e. accessing Sage by importing its functions and calling them). Obviously, one of the Sage functions calls GAP. But how do I increase the memory for GAP (and Sage if applicable?). The command line option above can't be passed directly to GAP. Is there some way to deal with this? Yes, I've googled for this, but found nothing.

I'm running Sage 10.11 on a Mac Pro with 32 GB of memory. Mac OS 10.10.5. Thanks for any suggestions.

edit retag flag offensive close merge delete

Comments

Is http://doc.sagemath.org/html/en/refer... relevant? I've seen other references before to this issue but I can't for the life of me find them now.

kcrisman gravatar imagekcrisman ( 2017-02-10 11:12:20 -0600 )edit

PS if you are running Sage 10.11 that is impressive indeed!

kcrisman gravatar imagekcrisman ( 2017-02-10 11:12:33 -0600 )edit

kcrisman. 10.11 It's the version that was available online. Did I miss something?

LouP gravatar imageLouP ( 2017-02-27 14:18:04 -0600 )edit

Yes, you missed something, because the current Sage version is 7.5.1 at this time. I could imagine you having Sage built for Mac 10.11, but not Sage 10.11. In any case, hope @nbruin's answer helps you!

kcrisman gravatar imagekcrisman ( 2017-02-28 10:27:15 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-10 16:26:00 -0600

nbruin gravatar image

I think gap does increase the memory pool. It just raises an error. If you rerun your example in the sage gap session, it should now have more memory available. It would indeed be nice if there's a natural way to get rid of the error in sage.

edit flag offensive delete link more

Comments

Thanks. Will try.

LouP gravatar imageLouP ( 2017-02-27 14:18:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-02-10 10:03:15 -0600

Seen: 87 times

Last updated: Feb 10