1 / 45

4 Parallel Computing and PVM

4 Parallel Computing and PVM . 黃信健. 4.1 Introduction. Parallel Virtual Machine PVM Beowulf Cluster physics2 Windows 系統下之分散式 運算 Run pssdot laplace and bug on several CPU’s. Windows 系統下之分散式運算. Distributed Computing under Windows. 4.2 Installation. PVM – the Parallel Virtual Machine

ivrit
Download Presentation

4 Parallel Computing and PVM

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. 4 Parallel Computingand PVM 黃信健

  2. 4.1 Introduction • Parallel Virtual MachinePVM • BeowulfClusterphysics2 • Windows 系統下之分散式運算 • Run pssdotlaplace and bug on several CPU’s

  3. Windows 系統下之分散式運算 Distributed Computing under Windows

  4. 4.2 Installation • PVM–the Parallel Virtual Machine • Unix/Linux vs. Windows systems • rsh rshd service • Physics1 consists of 4 pc’s — 3 Windows 98 and 1 Windows Me

  5. Physics1 Pvm1(PIII500) Pvm2 (PIII233) Pvm3 (PIII200) Pvm4 (PIII200)

  6. Physics2, workstation and HPC 32節點PC叢集、刀鋒叢集、高效能平行運算電腦

  7. Two Programming Strategies • MPMD — Multiple Program Multiple Data • The Bifurcation Map • SPMD — Single Program Multiple Data • 2 D Laplace Equation Solver (Jacobi Method)

  8. Case I – Bifurcation Map

  9. PVM1 (PIII500) PVM2 (PIII233) PVM3 (PII 200) PVM4 (PII 200) 4104K 2210K 1579K 1579K Result • Load Balancing Table 1. The size of data files

  10. 5.3 spmd-psdot.f - send C Loop over all worker processes DO 10 K = 1, NPROCS-1 C Spawn process and check for error CALL PVMFSPAWN( 'psdot', 0, 'anywhere', 1, TIDS(K), IERR ) IF (IERR .NE. 1) THEN WRITE(*,*) 'ERROR, could not spawn process #',K, $ '. Dying . . .' CALL PVMFEXIT( IERR ) STOP END IF C Send out startup info CALL PVMFINITSEND( PVMDEFAULT, IBUF ) CALL PVMFPACK( INTEGER4, J, 1, 1, IERR ) CALL PVMFPACK( REAL4, X(I), J, 1, IERR ) CALL PVMFPACK( REAL4, Y(I), J, 1, IERR ) CALL PVMFSEND( TIDS(K), 0, IERR ) I = I + J 10 CONTINUE

  11. Case II – 2D Laplace Equation

  12. Number of nodes 2 nodes 3 nodes 4 nodes CPU time (%) 100 99.23 59.91 Result • Benchmark Timing Table 2 CPU time against number of nodes

  13. Blade Speedup

  14. A Visual Fortran Image Processing System

  15. Distributed computing – Unsmoothed

  16. Distributed computing – smoothed

  17. 平行運算 PVM master-slave model Outline

  18. Parallel Virtual Machine (PVM) • PVM (ornl) and MPI (anl) • Oak Ridge National Lab • Argonne National Lab • Unix / Linux / Windows systems • Remote Shell • rsh /rshd service • Winrshd / Arshd

  19. Setup PVM • InstallShield • Install to C:\PVM • Set path for pvmd, compiler, libraries, and temp directory • Executable –> C:\pvm\bin\win32 • Output –> C:\PVM

  20. Setup Winrshd • Comercial package from http://www.winrshd.com • InstallShield • Install to C:\progra~1\winrshd • Configure the trusted user database • IP list 140.137.34.* • http://www.ataman.com

  21. PVM Console Commands • pvm> add host • add student25 • delete student25 • pvm> conf • pvm> halt

  22. Ex Program psdot.f– I

  23. Ex Program psdot.f– II

  24. Ex Program psdot.f– III

  25. Ex Program psdot.f– IV

  26. Ex Program psdot.f– V

  27. Ex Program psdot.f– VI

  28. Ex Program psdot.f– VII

  29. Ex Program psdot.f– VIII

  30. Ex Program master.f – I

  31. Program master.f – II

  32. Program master.f – III

  33. Program master.f – IV

  34. Program slave.f – I

  35. Program slave.f – II

  36. Program slave.f – III

  37. Program slave.f – IV

  38. Laplace’s Equation

  39. Finite Difference

  40. Jocobi Method

  41. Domain Decomposition

  42. The Logistic Map • x: population : growth rate • A quadratic nonlinear map

  43. The Parallel Bifurcation Map

  44. 32節點Windows PC叢集Physics2

  45. The End Next: sequential and parallel laplace solvers

More Related