[Omp] threads still exist after parallel region
Sk Y
sky_fd2346 at yahoo.de
Mon Jan 15 06:47:05 PST 2007
Thanks for your help, it is indeed a compiler specific issue. I tried the intel-compiler and now it works correctly.
Stefan
----- Ursprüngliche Mail ----
Von: Sk Y <sky_fd2346 at yahoo.de>
An: omp at openmp.org
Gesendet: Samstag, den 6. Januar 2007, 12:57:25 Uhr
Betreff: [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
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
More information about the Omp
mailing list