Difference between revisions of "Poolsize.m"
(→See also) |
(Sync syntax/arguments/outputs with current Spinach source) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:poolsize.m}} __NOTOC__ | {{DISPLAYTITLE:poolsize.m}} __NOTOC__ | ||
| + | |||
Returns the current parallel pool size. | Returns the current parallel pool size. | ||
==Syntax== | ==Syntax== | ||
| − | + | n=poolsize() | |
| + | |||
| + | ==Arguments== | ||
| + | |||
| + | none | ||
==Outputs== | ==Outputs== | ||
| − | + | n - number of workers in the current | |
parallel pool | parallel pool | ||
==Notes== | ==Notes== | ||
| + | |||
When this function is invoked from inside parfor, spmd, or asynchronous parallel job, it returns zero. | When this function is invoked from inside parfor, spmd, or asynchronous parallel job, it returns zero. | ||
==See also== | ==See also== | ||
| + | |||
[[Kernel_utilities#Parallelisation_and_GPUs|Parallelisation and GPUs]] | [[Kernel_utilities#Parallelisation_and_GPUs|Parallelisation and GPUs]] | ||
''Version 2.3, authors: [[Ilya Kuprov]]'' | ''Version 2.3, authors: [[Ilya Kuprov]]'' | ||
Revision as of 15:06, 5 April 2026
Returns the current parallel pool size.
Syntax
n=poolsize()
Arguments
none
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
Version 2.3, authors: Ilya Kuprov