Difference between revisions of "Save vstore.m"
(sync with Spinach main f053e432: new page for save_vstore.m created from the source header and implementation) |
(version fragment to 2.13 per IK 2026-08-30) |
||
| Line 19: | Line 19: | ||
[[load_vstore.m]], [[poolsize.m]], [[isworkernode.m]], [[save_anyway.m]], [[Kernel utilities]] | [[load_vstore.m]], [[poolsize.m]], [[isworkernode.m]], [[save_anyway.m]], [[Kernel utilities]] | ||
| − | ''Version 2. | + | ''Version 2.13, authors: [[Ilya Kuprov]]'' |
Latest revision as of 10:13, 30 August 2026
Saves the current parallel pool ValueStore into a Matlab file. The snapshot contains keys and values only; callback functions are session-local and are not stored.
A parallel pool must already be running: the pool is obtained with gcp('nocreate') and an error is thrown when there is none. The keys of the pool ValueStore are read with keys(), the corresponding values are retrieved in a single get() call, and the two are written to the destination file as the key_set and val_set variables in the -v7.3 MAT format. When the store holds no keys, val_set is written as an empty cell array of the same size as key_set.
Syntax
save_vstore(file_name)
Parameters
file_name - a character string specifying the destination
MAT file
Notes
The snapshot written here is the file format read back by load_vstore.m, which expects the key_set and val_set variables.
See also
load_vstore.m, poolsize.m, isworkernode.m, save_anyway.m, Kernel utilities
Version 2.13, authors: Ilya Kuprov