NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Multiprocessing the Sieve of EratosthenesThe Sieve of Eratosthenes for finding prime numbers in recent years has seen much use as a benchmark algorithm for serial computers while its intrinsically parallel nature has gone largely unnoticed. The implementation of a parallel version of this algorithm for a real parallel computer, the Flex/32, is described and its performance discussed. It is shown that the algorithm is sensitive to several fundamental performance parameters of parallel machines, such as spawning time, signaling time, memory access, and overhead of process switching. Because of the nature of the algorithm, it is impossible to get any speedup beyond 4 or 5 processors unless some form of dynamic load balancing is employed. We describe the performance of our algorithm with and without load balancing and compare it with theoretical lower bounds and simulated results. It is straightforward to understand this algorithm and to check the final results. However, its efficient implementation on a real parallel machine requires thoughtful design, especially if dynamic load balancing is desired. The fundamental operations required by the algorithm are very simple: this means that the slightest overhead appears prominently in performance data. The Sieve thus serves not only as a very severe test of the capabilities of a parallel processor but is also an interesting challenge for the programmer.
Document ID
19870002076
Acquisition Source
Legacy CDMS
Document Type
Preprint (Draft being sent to journal)
Authors
Bokhari, S.
(NASA Langley Research Center Hampton, VA, United States)
Date Acquired
September 5, 2013
Publication Date
June 1, 1986
Subject Category
Computer Programming And Software
Report/Patent Number
ICASE-86-41
NASA-CR-178131
NAS 1.26:178131
Report Number: ICASE-86-41
Report Number: NASA-CR-178131
Report Number: NAS 1.26:178131
Accession Number
87N11509
Funding Number(s)
PROJECT: RTOP 505-31-83-01
CONTRACT_GRANT: NAS1-18107
Distribution Limits
Public
Copyright
Work of the US Gov. Public Use Permitted.
No Preview Available