On Sun, Jan 18, 2009 at 1:30 PM, A. Jorge Garcia <[email protected]> wrote: > > OK, if I run a local notebook() on my dualcore, how do I make use of > both cores?
If you have two open worksheets, they'll run as two separate processes which can run on different cores. Or, you can use the @parallel decorator to make your own functions run multiple processes. Most things in Sage cannot take advantage of multiple cores by default as you usually need totally different approach to the algorithms. > Also, I have 25 dualcores in my classroom, so can I make use of all 50 > cores as a grid? There's a way to start the notebook worker processes where the communication is done over SSH so you could have 50 worksheets open each of whose process is on a different core. Look at the server_pool option in the docstring for notebook(). Do you have any particular computations that you want to run on all these machines? At the moment, unless you have something specific in mind where it makes sense to use a distributed solution, it is probably faster to do it on a single machine. --Mike --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en -~----------~----~----~----~------~----~------~--~---
