GSAVE

From Jacket Wiki

Jump to: navigation, search
Back to Jacket Function List, Jacket Basics

Save data to disk as text file directly from the GPU

Supported Syntax

bytes = gsave('filename', A);

GFOR Compatibility?

No, do not use inside a GFOR loop.

Description

Save data (where A is a GPU variable) to disk as text file directly from the GPU, avoiding the intermediate save into MATLAB (or host) memory. Used for speedy memory saves and especially useful in realtime applications. Currently supports saving only one variable at a time.

Example

filename = 'foo.txt';
b = gdouble([1:10;11:20]);
a = complex(b,b);
whos a;
nbytes = gsave(filename, a);
disp(nbytes);
vals = gload(filename);
whos vals;

See Also

GLOAD, GREAD, GWRITE

Views
Personal tools