Ask Your Question
1

Does SAGE support multithreading?

asked 2011-10-24 10:00:31 +0100

petRUShka gravatar image

updated 2011-10-24 10:01:26 +0100

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 10:21:47 +0100

parzan gravatar image
edit flag offensive delete link more
1

answered 2011-10-24 10:05:29 +0100

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 10:10:02 +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: 2011-10-24 10:00:31 +0100

Seen: 3,585 times

Last updated: Oct 24 '11