Difference between revisions of "Load vstore.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(sync with Spinach main f053e432: new page for parallel pool ValueStore load from a MAT file)
 
(version fragment to 2.13 per IK 2026-08-30)
 
Line 18: Line 18:
 
[[save_vstore.m]], [[poolsize.m]], [[isworkernode.m]], [[save_anyway.m]], [[Kernel utilities]]
 
[[save_vstore.m]], [[poolsize.m]], [[isworkernode.m]], [[save_anyway.m]], [[Kernel utilities]]
  
−
''Version 2.11, authors: [[Ilya Kuprov]]''
+
''Version 2.13, authors: [[Ilya Kuprov]]''

Latest revision as of 10:12, 30 August 2026

Loads the current parallel pool ValueStore from a Matlab file. The current store is cleared before the saved keys and values are inserted. Callback functions are session-local and are not loaded.

The file is expected to hold the key_set and val_set variables written by save_vstore.m; the function refuses to proceed unless both are present, key_set is a string array, val_set is a cell array, and the two have the same size. It then requires a parallel pool to be already running, obtained with gcp('nocreate'), removes every key currently in that pool ValueStore, and inserts the saved key and value sets in a single put call.

Syntax

    load_vstore(file_name)

Parameters

    file_name - a character string specifying the source MAT file

Notes

The pool store is overwritten completely: every key present before the call is removed, whether or not the snapshot contains a key of the same name.

See also

save_vstore.m, poolsize.m, isworkernode.m, save_anyway.m, Kernel utilities

Version 2.13, authors: Ilya Kuprov