poolsize.m

From Spinach Documentation Wiki
Revision as of 16:27, 12 January 2019 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:poolsize.m}} __NOTOC__ Returns the current parallel pool size. ==Syntax== n=poolsize() ==Outputs== n - number of workers in the current...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the current parallel pool size.

Syntax

    n=poolsize()

Outputs

    n  -  number of workers in the current
          parallel pool

Notes

When this function is invoked from inside parfor, spmd, or asynchronous parallel job, it returns zero.

See also

isworkernode.m, smack.m


Version 2.3, authors: Ilya Kuprov