Loosely Dependent Parallel Processes Complementary Paradigms - - PowerPoint PPT Presentation

loosely dependent parallel processes complementary
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Loosely Dependent Parallel Processes

slide-2
SLIDE 2

Complementary Paradigms

  • Massively Parallel
  • Task Farm
slide-3
SLIDE 3

Massively Parallel

Master Slaves

  • MPI/shared memory
slide-4
SLIDE 4

Task Farm

Controller Workers

  • Occasional network access
  • E.g. BOINC
slide-5
SLIDE 5

Integer Factorization

  • Trial Division
  • Quadratic Sieve
  • Elliptic Curve Method
slide-6
SLIDE 6

Trial Division

  • Fast for small factors
  • Necessary pre-processing for other

methods

slide-7
SLIDE 7

Quadratic Sieve

  • Among the fastest (known) algorithms for

“reasonably” sized primes

  • Runtime
  • Relation discovering phase embarrassingly

parallel

.O

  • exp

√n log log log n

  • .
slide-8
SLIDE 8

Elliptic Curve Method

  • Probabilistic, embarrassingly parallel
  • Runtime
  • Dominated by size of smallest factor
  • Use to peel off smaller factors
  • .O
  • exp

√p log log log p

  • .
slide-9
SLIDE 9

DSage implementation

... ...

Qsieve ECM

Controller Workers

slide-10
SLIDE 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
slide-11
SLIDE 11

DSage implementation

... ...

Qsieve ECM

Controller Workers n n

slide-12
SLIDE 12

DSage implementation

... ...

Qsieve ECM

Controller Workers r,s rs = n

slide-13
SLIDE 13

DSage implementation

... ...

Qsieve ECM

Controller Workers r s

kill n, start max(r,s)

slide-14
SLIDE 14

Offline Controllers

... ...

Qsieve ECM

Controller Workers Worker/Controller n p,q,r,...

slide-15
SLIDE 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

slide-16
SLIDE 16

Worker-to-Worker

  • Pros
  • Can open up a much wider range of

problems

  • E.g. periodically sharing boundary

data

  • Cons
  • Firewalls, etc.
slide-17
SLIDE 17

Questions?