Ask Your Question
1

increase GAP memory via Python script?

asked 2017-02-10 17:03:15 +0100

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 18:12:20 +0100 )edit

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

kcrisman gravatar imagekcrisman ( 2017-02-10 18:12:33 +0100 )edit

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

LouP gravatar imageLouP ( 2017-02-27 21:18:04 +0100 )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 17:27:15 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-02-10 23:26:00 +0100

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 21:18:49 +0100 )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 17:03:15 +0100

Seen: 1,171 times

Last updated: Feb 10 '17