Difference between revisions of "Save anyway.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎See also)
(Update function See also links and function index membership)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
−
{{DISPLAYTITLE:save_anyway.m}}
+
{{DISPLAYTITLE:save_anyway.m}} __NOTOC__
−
A wrapper intended to trick SPMD blocks into saving data.
+
A wrapper intended to trick SPMD blocks into saving data. Matlab does not permit load and save statements in parallel blocks, unless they are wrapped up like this.  
  
 
==Syntax==
 
==Syntax==
Line 6: Line 6:
 
     save_anyway(file_name,variable)
 
     save_anyway(file_name,variable)
  
−
==Description==
+
==Parameters==
−
Matlab does not permit load and save statements in parallel blocks, unless they are wrapped up like this. The function can only save one variable at a time, its name in the mat file is "variable".
 
−
 
 
−
==Arguments==
 
  
 
     file_name  - a character string specifying the  
 
     file_name  - a character string specifying the  
Line 17: Line 14:
  
 
==Outputs==
 
==Outputs==
−
This function writes a file.
+
This function writes a file. It can only save one variable at a time, its name in the mat file is "variable".
  
 
==See also==
 
==See also==
−
[[redfield_integral_async.m]], [[redfield_integral_serial.m]], [[ensemble_grape_call.]]
+
[[distrib_dim.m]], [[end_disallow_gpu.m]], [[isworkernode.m]], [[parallel_profiler_report.m]], [[parallel_profiler_start.m]], [[poolsize.m]], [[smack.m]], [[start_disallow_gpu.m]], [[swizzle.m]], [[Kernel_utilities]]
−
 
 
  
−
''Version 2.1, authors: [[Ilya Kuprov]]''
+
''Version 2.2, authors: [[Ilya Kuprov]]''

Latest revision as of 19:41, 6 June 2026

A wrapper intended to trick SPMD blocks into saving data. Matlab does not permit load and save statements in parallel blocks, unless they are wrapped up like this.

Syntax

    save_anyway(file_name,variable)

Parameters

   file_name  - a character string specifying the 
                file name

   variable   - the variable to be saved

Outputs

This function writes a file. It can only save one variable at a time, its name in the mat file is "variable".

See also

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

Version 2.2, authors: Ilya Kuprov