Skip to Main Content Skip to Search
Product Documentation

codistributor2dbc.defaultLabGrid - Default computational grid for 2-D block-cyclic distributed arrays

Syntax

grid = codistributor2dbc.defaultLabGrid()

Description

grid = codistributor2dbc.defaultLabGrid() returns a vector, grid = [nrow ncol], defining a computational grid of nrow-by-ncol labs in the open MATLAB pool, such that numlabs = nrow x ncol.

The grid defined by codistributor2dbc.defaultLabGrid is as close to a square as possible. The following rules define nrow and ncol:

Examples

View the computational grid layout of the default distribution scheme for the open MATLAB pool.

spmd
    grid = codistributor2dbc.defaultLabGrid
end

See Also

codistributed | codistributor2dbc | numlabs

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS