Ask Your Question
1

Does SAGE support multithreading?

asked 2011-10-24 03:00:31 -0500

petRUShka gravatar image

updated 2011-10-24 03:01:26 -0500

I have a heavy SAGE program (with a lot of GAP parts) and I noticed that SAGE used only one core. And my other cores were staying without work.

Is there a some techniques to force all my cores to work?

May be there is some python library or (the best case!) some automation...

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2011-10-24 03:21:47 -0500

parzan gravatar image
edit flag offensive delete link more
1

answered 2011-10-24 03:05:29 -0500

Yes, python has threading. Make

import threading

and then dive into the doc of this module ;) There are many sources on the internet.

Hope that helps

Laurent

edit flag offensive delete link more

Comments

Thanks! But does sage make multi thread code automatically? Does sage parallelize my code as much as it can?

petRUShka gravatar imagepetRUShka ( 2011-10-24 03:10:02 -0500 )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: 2011-10-24 03:00:31 -0500

Seen: 1,044 times

Last updated: Oct 24 '11