GLOAD

From Jacket Wiki

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

Load from disk directly into the GPU

Supported Syntax

v = gload('filename');

GFOR Compatibility?

No, do not use inside a GFOR loop.

Description

Loads memory directly from disk to the GPU, avoiding the intermediate load into MATLAB (or host) memory. Used for speedy memory loads and especially useful in realtime applications.

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

GSAVE, GREAD, GWRITE

Views
Personal tools