Prime Sieve blocked serial vs parallel

General OpenMP discussion

Prime Sieve blocked serial vs parallel

Postby Mau » Thu Jun 19, 2014 2:14 pm

Hi!
I am trying to implement prime sieve algorithm using blocked approached in OpenMP.
But the execution time for serial is 10 times lower than that for parallel.
Is it normal ?
what could be the reason? Block size: 1000000
Mau
 
Posts: 1
Joined: Tue Jun 03, 2014 1:02 pm

Re: Prime Sieve blocked serial vs parallel

Postby MarkB » Fri Jun 27, 2014 3:02 am

Mau wrote:But the execution time for serial is 10 times lower than that for parallel.
Is it normal ?


No, but there are reasons why this can happen: if you post your code I may be able to tell you why!
MarkB
 
Posts: 427
Joined: Thu Jan 08, 2009 10:12 am


Return to Using OpenMP

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 5 guests