This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with an openMP and pthread program compiled with gcc


Hi!

I tried my code on another machine with 4 processors. It works when I put
omp_set_num_threads(2) but only with omp_set_dynamic(true) and I noticed on
htop that only one processor is used per request. When I force the use of 2
processors with omp_set_dynamic(false), it segfaults or deadlocks, as it
does with 3 or 4 processors and on my 2 processors machine. So I didn't
solve the problem yet :-((.

So, anyone has an idea of the problem?
Thanks

-- 
View this message in context: http://old.nabble.com/Problem-with-an-openMP-and-pthread-program-compiled-with-gcc-tp29173546p29235078.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]