Semantics Consistent Parallelism - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

Semantics Consistent Parallelism

Description:

Dart throwing [Cook 1986] Loop: random sample from the entire domain ... State-of-art for image cloning other stuff. Solving Poisson equation. interior detail ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 18
Provided by: LiYi6
Category:

less

Transcript and Presenter's Notes

Title: Semantics Consistent Parallelism


1
Semantics Consistent Parallelism
  • Li-Yi Wei
  • Microsoft Research

2
Parallelism
parallel
parallel
parallel
3
Traditional parallelization
  • Sequential consistency Lampert
  • parallel algorithms do NOT change result
  • sorting, FFT, matrix, etc.

sort
4
New parallelization (cheating)
  • Not all algorithms need to be seq-consistent
  • perception (graphics/vision/image/video),
    statistics
  • approximate solutions might suffice ? more
    parallel
  • Semantic consistency

5
Examples
6
Pseudo Random Number Generator
  • The main source of randomness in programs
  • e.g. rand() in c/c
  • Desirable properties
  • white noise statistics
  • repeatable, fast computation
  • Traditional sequential method
  • e.g. xn (a xn-1 b) mod c

7
Parallel PRNG
  • input trivially prepared in parallel, e.g. linear
    ramp
  • feed input value into hash, independently in
    parallel
  • output white noise
  • key idea
  • borrow cryptographic hash!
  • Tzeng and Wei I3D 2008

input
hash
output
8
How to start a bar flight
9
How to stop the bar flight
10
Poisson disk sampling
  • A set of samples that are
  • as random as possible
  • remain a minimum distance r away from each other
  • Why pick this problem?
  • important algorithm
  • - sampling, graphics, statistics
  • seemly non-parallelizable

11
(No Transcript)
12
Dart throwing Cook 1986
  • Loop
  • random sample from the entire domain
  • accept sample if not in conflict with existing
    ones
  • O High quality
  • ground truth
  • X Slow speed
  • inherently sequential

13
Parallel Poisson disk samplingWei SIGGRAPH 2008
  • Samples from a grid
  • 1 sample per grid cell
  • Sample grid cells far apart in parallel
  • Watch out for bias!
  • Tricks to avoid bias

14
Image cloning
15
http//www.freewebs.com/cheesesandwiches/cloning.j
pg http//mahboubian.googlepages.com/dog-bird.jpg
16
Poisson image editingPerez et al. SIGGRAPH 2003
  • State-of-art for image cloning other stuff
  • Solving Poisson equation
  • interior detail (source)
  • boundary condition (target)
  • Heavy computation

17
Coordinate interpolation
  • Farbman et al. SIGGRAPH 2009
  • p ? wi bi
  • Easy computation
  • Run parallel on a GPU

18
Summary
  • Conclusion
  • sequential consistency too strict
  • semantic consistency (perceptual, statistical,
    etc)
  • Future work
  • parallelism via semantic consistency
  • individual algorithms / applications
  • general methodology?

19
(No Transcript)
20
Parallelism
  • Processors are becoming parallel
  • Intel Larrabee, NVIDIA, AMD/ATI, IBM/Sony Cell,
    etc.
  • So are programming interfaces
  • BSGP, CUDA, CAL, Ct, DX, OpenGL, etc.
  • As well as applications
  • To take advantage of parallel environment

21
Parallel Algorithm
  • Traditional parallelization methods
  • Sequential consistency Lampert
  • - sorting, FFT, matrix, etc.
  • Not all algorithms need to be seq-consistent
  • perception (graphics/vision/image/video),
    statistics
  • Approximate solutions might suffice
  • Opportunities for new parallelization methods

22
Image cloning
23
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com