Hello, I am working on a project with some significant computation of following form (let's assume two cpus for simplicity):
let x be a list of mathematical objects and let + be a commutative binary operation on x's elements def f(x): result = x[0] for i in range(1,len(x)) result = result + x[i] return(result) We want to break x up so that this function acts on a subset of elements in x, and these subsets are tackled on different CPU's on a cluster. Then we need to take y= [result_{cpu1},result{cpu2}] and f(y). I've browsed some documentation on this, and I'm having trouble making sense of the parallel decorator, getting it to acknowledge more than one CPU (there seems to be some ambiguity between setting using @parallel('ncpus' = #) or using SAGE_NUM_THREADS ?), and I can't tell whether we need to use MPI4PY here or whether SAGE already has everything we need. Any help would be very much appreciated. Best, Alex -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6e312506-a5a2-43fa-bd36-d3b92559492a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.