Items tagged with speed speed Tagged Items Feed

Multithreading loops

December 11 2012 by vicaut 55 Maple 15

How is it possible to let multiple cores compute a loop faster?

For exaple:

for i = 1 to 1000 do

*computation(i)*

end do

The goal is to let a quad core cpu split the 1000 independant computations in 4 packages of 250 each to speed up the computation by the factor 4 so that core1 computes i from 1 to 250, core2 from 251 to 500 and so on, at the same time. Is this possible?

xsys11demo.mw

The attached worksheet (xsys11demo.mw, first-order non-linear ODE system) is ~x100 (one hundred) times slower that the "same" program in Mathematica 8. Both give the same/satisfactory numerical results and have similar/identical structure (I can supply the Mathematica 8 notebook, if requested).

I assume that my attached worksheet must be sub-optimally programmed and would be grateful...

Hi all

Can anyone suggest ways of speeding up this code ?

div_vec := proc(a::Vector,b::Vector)
# procedure returns the element-byelement
# division of vector a by vector b
local i,c:
c:=Vector(Dimension(a)):
for i from 1 to Dimension(a) do
c[i]:= a[i]/b[i]:
end do:
return c:
end proc:
Thanks
LR

well first of all this site was very useful for doing my homework, but there is still something I didnt find on it and im sure other people may find it useful.

 

I have a system of 5 ode's and 6 initial conditions that ive solved successfully and plotted the graphs i need:  Position VS Time

          Speed VS Time

The only thing I initially know is the final position, which i can read on the first graph and...

I was wondering if there's a simple way to add something like an interpolation loop to a procedure. For example, say I have a function of 2 vars which is expensive to compute, f(x,y). I can use option cache to speed up points which are already computed, but is there an easy way to interpolate between them using ArrayInterpolation? That is, if f varies on scales of order 1, if I have calculated it at 0.1, 0.2, then It can be guessed with a spline at 0.15 accurately enough. What...

Just curious if there are any best upgrades to a computer to improve the speed of Maple.  Here's my issue.

It could be perhaps that I am just being bogged down by my video card.  When I have many plot displays open or a large plot structure with many points Maple really bogs down.  I think it's most likely my video card but I would like to hear some thoughts on this. 

It is a fairly old computer by todays standards ( single...

Hi,

 

I've got a pretty intensive run going on in Maple and I wanted to speed it up. It involves computing every power up to some large number (100,000+) of small matrices (2x2) but with very complicated abstract polynomials inside. There's really no way to speed this up as far as coding is concerned so my only option is to use multithreading, since I need mutiple runs, or run this on some faster server/cloud.

 

1) Multithreading will...

We just published an update to MaplePrimes that dramatically decreases the load times for thread pages. The improvement comes from not including the Comments or Branch information in the initial page load. Instead, the comments and branches are loaded via JavaScript after the initial page load. We are also loading the right hand sidebar of the site using JavaScript, so the size of each page is much smaller. Your browser will cache the sidebar and only reload it when new information appears there.

In our experimentation, we find that thread pages load considerably faster especially for pages with many comments. Also, and added bonus of serving the sidebar via JavaScript means that the Google spider will no longer include the sidebar content in its index, so this issue will be resolved.

Page 1 of 1