Parallelization of Geodesic Ray-Tracing for Arbitrary Metrics - - PowerPoint PPT Presentation

parallelization of geodesic ray tracing for arbitrary
SMART_READER_LITE
LIVE PREVIEW

Parallelization of Geodesic Ray-Tracing for Arbitrary Metrics - - PowerPoint PPT Presentation

CINESPA Parallelization of Geodesic Ray-Tracing for Arbitrary Metrics Guillermo Andree Oliva Mercado October 14, 2016 Space Science Research Centre (CINESPA) University of Costa Rica 1 Description of the problem Program and parallelization


slide-1
SLIDE 1

CINESPA

Parallelization of Geodesic Ray-Tracing for Arbitrary Metrics

Guillermo Andree Oliva Mercado October 14, 2016

Space Science Research Centre (CINESPA) University of Costa Rica 1

slide-2
SLIDE 2

Description of the problem

Program and parallelization The future

2

slide-3
SLIDE 3

3

slide-4
SLIDE 4

What you need to know...

  • Metrics describe spacetime
  • Spacetime becomes curved around compact objects (neutron

stars, black holes, etc.)

  • Curved spacetime bends light: null geodesics
  • Geodesic equations: 2nd order ODE system that contains

derivatives of the metric that describe trajectories of particles

  • I am solving the geodesic equations for arbitrary metrics
  • I want to apply the result to:
  • Gravitational redshift of radiation emitted near a compact
  • bject ←
  • High resolution gravitational lenses

4

slide-5
SLIDE 5

Initial conditions

5

slide-6
SLIDE 6

Description of the problem

Program and parallelization

The future

6

slide-7
SLIDE 7

Structure of the program

generation of equations python/fortran interface Metric X geodesic equations (subroutines) variation of initial conditions

  • utput files

sage python fortran text/bin file module script numerical methods, coordinates analysis and visualization 7

slide-8
SLIDE 8

Problems with the serial version

  • For low resolutions works decently fine (aprox. 1-5 minutes)
  • Increasing the size of the region increases considerably the

time!

  • I need lots of runs! — Different parameters
  • Theoretically it’s easy to parallelize and use available resources

8

slide-9
SLIDE 9

Parallelizable tasks

generation of equations Metric X geodesic equations (subroutines) variation of initial conditions

  • utput files

sage python fortran text/bin file module script numerical methods, coordinates analysis and visualization parallelizable tasks 9

slide-10
SLIDE 10

Implementation

solving of geodesic equations distribution of initial conditions

  • utput files

data gathering and

  • utput

solving of geodesic equations distribution of initial conditions solving of geodesic equations distribution of initial conditions analysis and visualization

10

slide-11
SLIDE 11

Problems and simplifications

  • Distribution of initial conditions manually
  • Saving all iterations: with adaptive-size methods you can’t

predict the size of results!

  • The initial and final iterations allowed me to construct one

image

  • Non-perfect results (nothing to do with parallelization)

11

slide-12
SLIDE 12

Results

200 × 200 pixels

12

slide-13
SLIDE 13

Scalability

Numbers: processes in the x direction

13

slide-14
SLIDE 14

Description of the problem Program and parallelization

The future

14

slide-15
SLIDE 15

Lessons learned

  • All is more complicated in parallel
  • Ask questions!
  • Look for things already implemented!
  • Start with the simplest case
  • Prototyping in Python before implementing in the main code
  • Version control saved my life: In the past, I had already

implemented and erased some useful lines of code that I needed now!

15

slide-16
SLIDE 16

This School helped me because...

  • I can now generate higher resolution images and try more

initial conditions

  • I can now use the Chirripó cluster (Cinespa) for my project
  • It gave me an insight about parallel programing for other

projects

16

slide-17
SLIDE 17

Thanks

GANDREOLIVA more information www.gandreoliva.org/english

17