Difference between revisions of "Poolsize.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:poolsize.m}} __NOTOC__ Returns the current parallel pool size. ==Syntax== n=poolsize() ==Outputs== n - number of workers in the current...")
 
(sync with Spinach main f053e432: add Parameters section (none))
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
     n=poolsize()
 
     n=poolsize()
 +
 +
==Parameters==
 +
 +
    none
  
 
==Outputs==
 
==Outputs==
Line 15: Line 19:
  
 
==See also==
 
==See also==
−
[[isworkernode.m]], [[smack.m]]
+
[[distrib_dim.m]], [[end_disallow_gpu.m]], [[isworkernode.m]], [[parallel_profiler_report.m]], [[parallel_profiler_start.m]], [[save_anyway.m]], [[smack.m]], [[start_disallow_gpu.m]], [[swizzle.m]], [[Kernel_utilities]]
−
 
 
  
 
''Version 2.3, authors: [[Ilya Kuprov]]''
 
''Version 2.3, authors: [[Ilya Kuprov]]''

Latest revision as of 07:04, 30 August 2026

Returns the current parallel pool size.

Syntax

    n=poolsize()

Parameters

    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

distrib_dim.m, end_disallow_gpu.m, isworkernode.m, parallel_profiler_report.m, parallel_profiler_start.m, save_anyway.m, smack.m, start_disallow_gpu.m, swizzle.m, Kernel_utilities

Version 2.3, authors: Ilya Kuprov