First time here? Check out the FAQ!

Ask Your Question
1

Does SAGE support multithreading?

asked 13 years ago

petRUShka gravatar image

updated 13 years ago

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...

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 13 years ago

parzan gravatar image
Preview: (hide)
link
1

answered 13 years ago

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

Preview: (hide)
link

Comments

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

petRUShka gravatar imagepetRUShka ( 13 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: 13 years ago

Seen: 3,675 times

Last updated: Oct 24 '11