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: 432
Joined: Thu Jan 08, 2009 10:12 am

Re: Prime Sieve blocked serial vs parallel

Postby rondanyd » Sun Sep 07, 2014 11:08 am

What are the advantages of going for serial over parallel?
rondanyd
 
Posts: 1
Joined: Wed Aug 27, 2014 5:18 am


Return to Using OpenMP

Who is online

Users browsing this forum: Google [Bot] and 6 guests