| outs can have a list of buffers to be combined at the end of the kperiod. That is to say, each thread has its own spout. When all threads have finished their kperiod the thread spouts are summed to the global spout which actually goes to the soundfile or audio output.
I recommend that you look at Intel Threading Building Blocks, parallel for and parallel reduce. This is parallel reduce.
By the way, I think parallel rendering is the most important project on the Csound agenda at this time. Starting right now -- since quad core is a reality -- a software sound synthesis system must be parallel. If Csound is not parallel and SuperCollider or something is, everybody will just switch. And similarly, if Csound is parallel and others are not, everybody will just switch to Csound.
Regards,
Mike
-----Original Message-----
>From: jpff
>Sent: Apr 24, 2008 6:30 AM
>To: Michael Gogins , Developer discussions
>Cc: csound-devel@lists.sourceforge.net
>Subject: Re: [Cs-dev] Profiling csound -- revised again
>
>Regarding parallel Csound, I was designing a system on the bike last
>week. If/when I get a free gap I wanted to try the following attempt
>at multi-core.
>
>If an instrument does not access globals or zak then we can have a
>small group of worker threads that run instruments in parallel. This
>could be policed with a small change to the parser. However there is
>a flaw -- out is in effect a global access. So as an experiment
>replace outs with a version that checks a semaphore, ignore the
>zak/globals for now, and see if there is any performance gain. This
>seems a simple investment.
>
>I am convinced that the solution lies in compiler-time analysis. If
>one breaks it all down to dataflow level the overheads dominate --
>that seems to be the lesson of Midas.
>
>I will read Mike's message more carefully soon -- drowning in e-mail
>(mainly from students who have to hand in their dissertation next
>Monday)
>
>==John ffitch
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |