GDOUBLE

From Jacket Wiki

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

Convert to GPU-based double precision

Usage

Jacket for M Language
    Supported Syntax
    
A = gdouble(B)
    

GFOR Supported

Yes

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE   GLOGICAL   GINT32   INT8   GUINT32   GUINT8   COMPLEX 

Types Not Supported

-

CPU usageJacket only contains GPU computing functions. To run functions on the CPU, try one of the MathWorks products:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/double.html
More Details
  • Use the standard MATLAB conversions to return data to the CPU (see below).
  • Examples Usage:
A = gdouble(rand(4) + 8);
B = (A + 4)/9;
C = double(B);     bring back to CPU

Notes

  • All subsequent computations on A are performed on the graphics card (GPU).
  • Actual GPU computation is delayed until the results are requested.
  • If the currently selected GPU is not double precision capable, this command issues a warning and casts to single precision.

See Also

GONES, GZEROS, GEYE, GSELECT, GSINGLE, GLOGICAL, GINT32, GUINT32

Personal tools