Re: [AD] Fwd: multithreading Allegro?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


                       vfvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvgttttrtttuiip[[]\\

On Sat, Oct 4, 2008 at 3:54 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2008-10-04, Jon Rafkind <workmin@xxxxxxxxxx> wrote:
>> I know of the Cilk project through other people (I worked with a girl
>> who was on the JCilk project, Cilk for java). The point doesn't seem to
>> be that you can *use* Allegro in a multithreaded fashion (I already use
>> 4.2 in multiple threads, just very carefully), but for the Allegro
>> internals to have code that tries to take advantage of multiple cores.
>> For instance writing for loops that automatically expand into parallel
>> versions. Its a clever way of utilizing multiple cores without
>> explicitly writing the fork/join code to do it.?.kjhgtrewq
>>
>> Openmp is another way to achieve this, and it comes with gcc 4.3 and up.
>> I've only briefly looked at Cilk and openmp so I can't say which is
>> better nor even if we care about using it.. Perhaps some of the more
>> mathy routines in Allegro (like quaternions?) would enjoy multithreading.
>>
>> If the api's are really easy to use and support our platforms it may be
>> worth looking into at some point.
>
> I looked at Cilk a couple of years ago (not Cilk++, but should be
> similar).  It's cool stuff.  But it *is* another language and needs to
> be run through a pre-compiler.  I can't really think of anything in
> Allegro itself which would benefit from the task parallelism to make the
> hassle worthwhile.
>
> Peter
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/