Difference between revisions of "Isworkernode.m"
(Created page with "{{DISPLAYTITLE:isworkernode.m}} Returns true if executed inside a parfor or spmd block. This function is used in the internal decision making of ''Spinach'' kernel: certain al...") |
|||
| Line 11: | Line 11: | ||
==See also== | ==See also== | ||
| − | [[save_anyway.m]] | + | [[save_anyway.m]], [[smack.m]] |
| − | ''Version 2. | + | ''Version 2.2, authors: [[Ilya Kuprov]]'' |
Revision as of 09:49, 21 August 2018
Returns true if executed inside a parfor or spmd block. This function is used in the internal decision making of Spinach kernel: certain algorithms are switched to their serial versions if the calculation is already running inside some parallel loop.
Syntax
answer=isworkernode()
Outputs
answer - true if running on a parallel worker process
See also
Version 2.2, authors: Ilya Kuprov