Threads

General OpenMP discussion

Re: Threads

Postby MarkB » Fri May 24, 2013 11:27 am

Since you are hard coding the number of threads, and different runs report different numbers of running threads, it seems reasonably certain you are not re-running the same executable. It would be worth adding calls to omp_get_wtime() around the parallel region to make check how much time is being spent in there.

Regal wrote:The makefile is supposed to update them after each change in code source, no?


Yes, though makefiles can have bugs (Fortran modules can be especially problematic). Best to have a "make clean" rule that deletes all non-source files so than you can do a full rebuild if necessary.
MarkB
 
Posts: 408
Joined: Thu Jan 08, 2009 10:12 am

Re: Threads

Postby Regal » Tue May 28, 2013 1:11 am

OK guys, thank you for the help. I start seeing more clearly now and I can go on and ask the crucial question about the bug preventing me to use more than one thread. But I feel it is better to deal with it in a separate discussion.
Regal
 
Posts: 15
Joined: Wed May 22, 2013 3:04 am

Previous

Return to Using OpenMP

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests