1 / 15

מבוא לעיבוד מקבילי – שיעור מס' 2

מבוא לעיבוד מקבילי – שיעור מס' 2. דר' גיא תל-צור. !. Next Sunday, 17:00-20:00, the lab will take place in Lab310 building 34. Course Roadmap. Tools MPI OpenMP Condor Algorithms Embarrassingly Parallel Computations Synchronous Computations Sorting Algorithms Load Balancing

Download Presentation

מבוא לעיבוד מקבילי – שיעור מס' 2

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. מבוא לעיבוד מקבילי – שיעור מס' 2 דר' גיא תל-צור

  2. ! • Next Sunday, 17:00-20:00, the lab will take place in Lab310 building 34

  3. Course Roadmap • Tools • MPI • OpenMP • Condor • Algorithms • Embarrassingly Parallel Computations • Synchronous Computations • Sorting Algorithms • Load Balancing • Numerical Algorithms • Practice • Lab tutorials, home assignments, presentations

  4. תכנית השיעור • המשך המצגת משעור מספר 1 • מצגת מבוא ל- MPI • הדגמות

  5. עבור למצגת שיעור מס' 1

  6. Message passing demo in Python # Echo server program import socket HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() print 'Connected by', addr while 1: data = conn.recv(1024) if not data: break conn.send(data) conn.close()

  7. # Echo client program import socket HOST = 'localhost' # The remote host PORT = 50007 # The same port as used by the server s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) s.send('Hello, world') data = s.recv(1024) s.close() # repr= Return a string containing a printable representation of an object. print 'Received', repr(data)

  8. עבור למצגת מבוא ל- MPI • Presentation file name: “slides2.ppt”

  9. הדגמות • הרצת תכנית MPI בסביבת WINDOWS (השקף הבא) • הרצת תכנית MPI בסביבת LINUX (מכונה וירטואלית כאורחת במערכת "חלונות") • הרצת תכנית MPI בקלאסטר הלימודי vdwarf

  10. הדגמת MPI בסביבת WINDOWS • 3 דרכים • MPICH2 • ראה קובץ README בהפצה של MPICH2 • באג ב- VISTA • MPI.NET (mpi for all .NET languages) • הדרכה נמצאת בבלוג שלי: http://telzur.blogspot.com/2009/05/mpinet-tutorial.html • Microsoft MPI in Visual Studio • DeinoMPI – מצגת נפרדת!

  11. סביבות עבודה בלינוקס במחשב האישי שלכם • CYGWIN • Virtualization • VMWARE(Player) • Virtual Box (next slide) • Dual-Boot (caution: for experts only)

  12. mpich: start the mpd process first: Prompt> mpd &

  13. לימוד לינוקס • אתרים http://www.linux.org/lessons/beginner/toc.html http://www.ee.surrey.ac.uk/Teaching/Unix/ • ספר חופשי: Linux From Scratch (LFS) נא ללמוד את יסודות מערכת ההפעלה החשובה הזו

  14. מינהלה... • יש להתחלק לזוגות. • לשלוח שמות +ת.ז. +דוא"ל של 2 השותפים לדוא"ל של הקורס pp@ee.bgu.ac.il. • תקבלו במייל חוזר את מספר הקבוצה שלכם. מספר זה ישמש אותנו לאורך כל הקורס.

More Related