Академический Документы
Профессиональный Документы
Культура Документы
Shuxia Zhang
Supercomputing Institute
e-mail: szhang@msi.umn.edu
help@msi.umn.edu
Tel: 612-624-8858 (direct)
612-626-0802(help)
Outline:
Introduction
MatlabMPI functions/syntax
Matlab functions
How to write MatlabMPI program
How to run MatlabMPI jobs
Hands-on
INTRODUCTION
MatlabMPI
-- developed at Lincoln Laboratory, MIT
-- implements a subset of MPI
-- allows any Matlab programs to run in parallel,
speeding up calculations and addressing memory > 2 GB
on both SMP and DMP systems
-- implements the widely used MPI "look and feel" on top
of standard Matlab file i/o, resulting in a "pure" Matlab
implementation of MPI
-- is exceedingly small (~300 lines of code).
-- runs on any combination of computers that Matlab supports.
Requirements
- Matlab license
A single Matlab license on SMP
Floating license on DMP
- File system visible to all processors
uses file I/O for communication,
there must be a directory that is visible to every machine
where the program is launched. The directory can be
changed within the MatlabMPI program.
- Data-transfer or communication strongly depends on the network,
which can be slow .
MatlabMPI is suitable for coarse granularity applications
MPI functions
function MPI_Init()
% Called at the beginning of an MPI program.
function size = MPI_Comm_size(comm)
% MPI_Comm_size - returns the number of processors
% in the communicator
% comm is an MPI Communicator, typically
% a copy of MPI_COMM_WORLD
function rank = MPI_Comm_rank(comm)
% MPI_Comm_rank - returns the rank of the current processor.
%
% rank = MPI_Comm_rank(comm)
MPI functions
function MPI_Abort()
% MPI_Abort - Aborts any currently running MatlabMPI sessions.
% It will abort any currently running MatlabMPI sessions.
% by looking for leftover Matlab jobs and killing them.
% Cannot be used after MatMPI_Delete_all.
function MPI_Finalize()
% MPI_Finalize
% Called at the end of a MatlabMPI program.
MPI functions
MPI_Run( m_file, n_proc, machines )
MatMPI_Delete_all
% MatMPI_Delete_all - Deletes leftover MatlabMPI files
Bioinformatics Toolbox
Communications Toolbox LMI Control Toolbox
Control System Toolbox Mapping Toolbox
Curve Fitting Toolbox Model-Based Calibration Toolbox
Data Acquisition Toolbox Model Predictive Control Toolbox
Database Toolbox Mu-Analysis and Synthesis
Datafeed Toolbox Toolbox
Excel Link Neural Network Toolbox
Filter Design Toolbox Optimization Toolbox
Financial Toolbox Partial Differential Equation
Financial Derivatives Toolbox (PDE) Toolbox
Financial Time Series Toolbox Robust Control Toolbox
Fixed-Income Toolbox Signal Processing Toolbox
Fuzzy Logic Toolbox Spline Toolbox
GARCH Toolbox Statistics Toolbox
Genetic Algorithm Toolbox Symbolic Math Toolbox
Image Acquisition Toolbox System Identification Toolbox
Image Processing Toolbox Virtual Reality Toolbox
Instrument Control Toolbox Wavelet Toolbox
Matlab functions
Examples:
http://www.ll.mit.edu/MatlabMPI/
http://www.msi.umn.edu/tutorial/scicomp/general/MPI/
workshop_MPI/
http://www.mathworks.com/products/
http://www.mpi-forum.org/
This room is reserved for a tutorial
On June. 1 from 1:00pm to 4:00pm
Thank you for your cooperation!