[Omp] threads still exist after parallel region
Håkan Lane
h.l at operamail.com
Sun Jan 7 15:03:59 PST 2007
I don't know what the syntax in C is, but I am missing an end parallel in this code. Might that be the problem? Good luck with solving it.
Håkan
> ----- Original Message -----
> From: "Sk Y" <sky_fd2346 at yahoo.de>
> To: omp at openmp.org
> Subject: [Omp] threads still exist after parallel region
> Date: Sat, 6 Jan 2007 11:57:25 +0000 (GMT)
>
>
> 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
>
--
_______________________________________________
Search for products and services at:
http://search.mail.com
Powered by Outblaze
More information about the Omp
mailing list