[Omp] threads still exist after parallel region

Shah, Sanjiv sanjiv.shah at intel.com
Sat Jan 6 08:59:24 PST 2007


This could be a compiler specific issue.  Are you using managed code or native code?  If native, there are alternative compilers you can try, for example the Intel compilers.  You can try with an evaluation copy to see if you get better results.

Sanjiv

--
Sanjiv
 
217/403-4244 office
217/419-4390 mobile
-----Original Message-----
From: omp-bounces at openmp.org [mailto:omp-bounces at openmp.org] On Behalf Of Sk Y
Sent: Saturday, January 06, 2007 5:57 AM
To: omp at openmp.org
Subject: [Omp] threads still exist after parallel region

Hello,



I have a problem with my dll. I want to calculate a for-loop in parallel in my thread. I am calculating a picture, each column can be computed independently of each other. The program runs and gives the correct result. The problem is, if I set the number of OMP-Threads >1, the threads are not destroyed after each call of my calculation thread. I'm checking this with Windows Task Manager, the number of threads continuously increases and the amount of free memory decreases. If I just use one thread, it works correctly and disappears after calculation.




DWORD WINAPI runInThread(LPVOID lpParam) {
    
#pragma omp parallel for private(...)
    for (j=0;j<maxcolumns;j++) { //calculate picture
    
        //some ffts (using fftw-library)
    }
    //end of parallel for




    return 0;
}
    

The dll is called from LabView 7. It is programmed with Visual Studio .Net. I am quite new to openmp, I hope somebody can help.

Best regards,
Stefan





__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 
_______________________________________________
Omp mailing list
Omp at openmp.org
http://openmp.org/mailman/listinfo/omp


More information about the Omp mailing list