[Omp] threads still exist after parallel region

Sk Y sky_fd2346 at yahoo.de
Sat Jan 6 03:57:25 PST 2007


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 


More information about the Omp mailing list