User`s guide

7-13
0.8632 0.7481 0.9901 0.0420
0.2307 0.7008 0.7516 0.5059
existsOnGPU(R)
1
reset(g); % Resets GPU device
existsOnGPU(R)
0
R % View GPUArray contents
Data no longer exists on the GPU.
Any attempt to use the data from R generates an error.
MATLAB Code on the GPU
GPU support is extended to include the following MATLAB code in functions called by
arrayfun to run on the GPU:
and
beta
betaln
eq
ge
gt
int8
int16
intmax
intmin
ldivide
le
lt
minus
ne
not
or
plus
power
rdivide
realmax
realmin
times
uint8
uint16
Note the following enhancements and restrictions to some of these functions:
plus, minus, ldivide, rdivide, power, times, and other arithmetic, comparison
or logical operator functions were previously supported only when called with their
operator symbol. Now they are supported in their functional form, so can be used as
direct argument inputs to arrayfun and bsxfun.
arrayfun and bsxfun on the GPU now support the integer data types int8, uint8,
int16, and uint16.
The code in your function can now call any functions defined in your function file or on
the search path. You are no longer restricted to calling only those supported functions
listed in the table of Supported MATLAB Code.