Ask Your Question
0

Sage Cloud - parallel processing - cluster online public

asked 2013-09-25 15:57:44 -0500

mresimulator gravatar image

updated 2015-01-17 10:50:00 -0500

FrédéricC gravatar image

Hi experts!!

Im doing Monte Carlo simulations with my laptop. The papers relationated with my topic says that use CPU clusters for calculus. Does free and public clusters exists? How can I use that for run my codes writen in SAGE? (I use ubuntu 13) Can I use SAGE Cloud for that? How?

Waiting for your answers.

Thanks a lot!

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2013-09-28 13:59:23 -0500

William Stein gravatar image

Right now https://cloud.sagemath.com provides a single computer with 8 cores. From within a worksheet, you can use the @parallel decorator to run 8 computations at once (type parallel? for docs).

Depending on what you're simulating, you might benefit a lot from writing Cython code (included in cloud.sagemath), using numpy/scipy (which is in Sage), etc.

edit flag offensive delete link more
0

answered 2013-09-26 06:42:15 -0500

Mark gravatar image

I'd be the last to put the brake on your sage enthusiasm ... and I can't answer your question on SAGE cloud usage ... so, admittedly my answer is kind of unrelated to this forum ... but if you are really up to writing scientifically competitive numerical Monte Carlo production code including - as your question suggests - parallelism, i.e. most likely code that makes use of MPI, then, to my humble understanding you may want to reconsider, if a CAS like sage is really what you want to use for that - before you get stuck. Surely you can try doing your best at using essentially the C(P)ython subset of sage including libs like mpi4py. But even then - and I have lots of examples for that - it is very very likely, that your MC code will perform poorly, to say the least, as compared to any straightforward C++ implementation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-09-25 15:57:44 -0500

Seen: 527 times

Last updated: Sep 28 '13