Difference between revisions of "Smack.m"
(→See also) |
|||
| Line 18: | Line 18: | ||
==See also== | ==See also== | ||
| − | [[ | + | [[Kernel_utilities#Parallelisation_and_GPUs|Parallelisation and GPUs]] |
''Version 2.2, authors: [[Ilya Kuprov]]'' | ''Version 2.2, authors: [[Ilya Kuprov]]'' | ||
Revision as of 14:08, 17 May 2025
Forcibly shuts down the parallel pool and clears the workspace.
Contents
Syntax
smack()
Description
When a Ctrl-C is pressed halfway through a parallel calculation, Matlab would sometimes not terminate the worker processes, and the parallel pool would get stuck until all workers have computed their chunks. A forcible pool shutdown is needed in this case.
Notes
The command is equivalent to the following:
delete(gcp('nocreate')); clear('all');
close('all'); fclose('all');
It exists because Ilya Kuprov got tired one day of repeatedly typing that.
See also
Version 2.2, authors: Ilya Kuprov