OpenMP -- anyone with experience using it?

Bruce Labitt bruce.labitt at myfairpoint.net
Sun Feb 22 10:17:20 EST 2009


Anyone ever use OpenMP?  It is designed to parallelize code for 
computing platforms that have multiple processors with shared memory. 

I'd like to pipeline a process - basically to do a file write for the 
previous frame of data in one thread and signal process the current 
frame with the remaining threads.  The computer I have has 4 CPUs.

OpenMP has a construct called omp section, but it is targeted towards a 
single thread rather than a bunch of threads.  I could break up a loop 
into sections an place them in each section - but that seems really ugly 
and brute force.  I've posted this question on the OpenMP Forum, but 
have not heard from anyone yet. 

I have successfully used OpenMP to implement some parallel for loops.  
It nearly gives a N times improvement if the problem is big enough. 

Is there a better or alternate way to accomplish this pipelining process?
Thanks,
-Bruce


More information about the gnhlug-discuss mailing list