gomp-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gomp-discuss] Start of an OpenMP Implementation Spec


From: Lars Segerlund
Subject: Re: [Gomp-discuss] Start of an OpenMP Implementation Spec
Date: Thu, 26 Aug 2004 19:55:34 +0200

> 
> I'll suggest one other first step that you may want to take.  Grab a
> copy of the gomp branch from gcc.gnu.org and create a new SSA pass that
>

  Ok, but this will take a couple of days for me, ( LOL, åun intended ). 
> Identifies a special switch statement by checking if it's using a
> magically named variable (say "__gomp_thread_id").
> It adds a function call to some threads library to spawn as many threads
> as cases you find in the switch.
> Adds the appropriate thread join calls at the end of the switch.
> 
> You could start by forcing each case of the switch to be a function call
> so that you don't have to build the function bodies yourself (some
> thread libraries want to launch functions).
> 

 Now this sounds like a start in the backend, and plausible one to !
 I'm all for.

> If anyone is interested, I could update the gomp branch from mainline to
> get the latest bits.
>

 Please do, since 3.5 is on it's way out wwe might as well have some recent 
code to work with.
 
> 
> Diego.
> 
> 
> 
> _______________________________________________
> Gomp-discuss mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gomp-discuss




reply via email to

[Prev in Thread] Current Thread [Next in Thread]