Parallel python
This presentation is the property of its rightful owner.
Sponsored Links
1 / 9

Parallel Python PowerPoint PPT Presentation


  • 162 Views
  • Uploaded on
  • Presentation posted in: General

Parallel Python. Ben Agar , Gal Paikin. Outline. What is Python Parallel Python pyMPI Efficiency – Python Vs. C Conclusions Questions. What is Python. High level programming language invented in late 1980s Philosophy : code readability, “short” codes, fast programming.

Download Presentation

Parallel Python

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Parallel python

Parallel Python

Ben Agar , Gal Paikin


Outline

Outline

  • What is Python

  • Parallel Python

  • pyMPI

  • Efficiency – Python Vs. C

  • Conclusions

  • Questions


What is python

What is Python

  • High level programming language invented in late 1980s

  • Philosophy : code readability, “short” codes, fast programming.

  • Programming paradigms: object oriented, imperative, functional programming

  • Indentation based runtime compilation.


Parallel python1

Parallel Python

  • Environment : Multiple CPUs, Multicore CPUs, Clusters.

  • The goal is to improve performance by parallel computing invisible to the user.


Parallel python with pympi

Parallel Python with pyMPI

  • Developed by Pat Miller at the Lawrence Livermore National Laboratory

  • Provides Python level interface to MPI routines

    (bcast, barrier, reduce, send, recv, scatter, gather etc…)

  • pyMPIis a separate executable that incorporates Python

  • pyMPIruns on every processor and all executes the same Python code

  • First processor serves as the Master. All input read in by first processor and sent to all other processors.

  • Output can be controlled – either only from first processor, all

    processors or a mix

  • Extensive wrapping of MPI


Efficiency

Efficiency

  • pyMPI messages contain more overhead than native languages MPI.

  • Message repetition


Pympi code example

pyMPI code example

Calculating PI :


Conclusions

Conclusions

  • Python is a fast, hands-on programming language

  • As a higher level language, python is slower than C or Fortran

  • pyMPI offers an MPI solution for python that is slower in performance yet worthwhile.

  • pyMPI slow factor is similar to the general python slower factor comparing to C.


Parallel python

Questions?


  • Login