loosely dependent parallel processes complementary
play

Loosely Dependent Parallel Processes Complementary Paradigms - PowerPoint PPT Presentation

Loosely Dependent Parallel Processes Complementary Paradigms Massively Parallel Task Farm Massively Parallel Slaves Master MPI/shared memory Task Farm Workers Controller Occasional network access E.g. BOINC Integer


  1. Loosely Dependent Parallel Processes

  2. Complementary Paradigms • Massively Parallel • Task Farm

  3. Massively Parallel Slaves Master • MPI/shared memory

  4. Task Farm Workers Controller • Occasional network access • E.g. BOINC

  5. Integer Factorization • Trial Division • Quadratic Sieve • Elliptic Curve Method

  6. Trial Division • Fast for small factors • Necessary pre-processing for other methods

  7. Quadratic Sieve • Among the fastest (known) algorithms for “reasonably” sized primes • Runtime � � √ n log log log n �� . O exp . • Relation discovering phase embarrassingly parallel

  8. Elliptic Curve Method � � �� • Probabilistic, embarrassingly parallel • Runtime � � √ p log log log p �� . O exp . • Dominated by size of smallest factor • Use to peel off smaller factors

  9. DSage implementation Controller Workers Qsieve ... ECM ...

  10. DSage implementation Controller • factors = {n} • While factors not all prime • Wait for factor r • Use GCD(-,r) to split factors • Start new ECM/Qsieve workers

  11. DSage implementation Controller Workers n Qsieve ... n ECM ...

  12. DSage implementation Controller Workers Qsieve ... r,s ECM ... rs = n

  13. DSage implementation Controller Workers kill n, start max(r,s) Qsieve ... r s ECM ...

  14. Offline Controllers Controller Worker/Controller n p,q,r,... Workers Qsieve ... ECM ...

  15. Communication Bottleneck • All communication passes through server and client • Currently extremely course-grained (workers listen only for kill) • Obviously we can’t compete with MPI, but many almost-embarrassingly parallel problems don’t need that

  16. Worker-to-Worker • Pros • Can open up a much wider range of problems • E.g. periodically sharing boundary data • Cons • Firewalls, etc.

  17. Questions?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend