Ask Your Question
1

increase GAP memory via Python script?

asked 8 years ago

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.

Preview: (hide)

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 ( 8 years ago )

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

kcrisman gravatar imagekcrisman ( 8 years ago )

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

LouP gravatar imageLouP ( 8 years ago )

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 ( 8 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 8 years ago

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.

Preview: (hide)
link

Comments

Thanks. Will try.

LouP gravatar imageLouP ( 8 years ago )

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: 8 years ago

Seen: 1,239 times

Last updated: Feb 10 '17