User`s guide
9-3
subsasgn
subsindex
subsref
vertcat
and all the plotting related functions.
GPUArray Indexing
Because GPUArray now supports subsasgn and subsref, you can index into a
GPUArray for assigning and reading individual elements.
For example, create a GPUArray and assign the value of an element:
n = 1000;
D = parallel.gpu.GPUArray.eye(n);
D(1,n) = pi
Create a GPUArray and read the value of an element back into the MATLAB workspace:
m = 500;
D = parallel.gpu.GPUArray.eye(m);
one = gather(D(m,m))
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:
&, |, ~, &&, ||,
while, if, else, elseif, for, return, break, continue, eps
You can now call eps with string inputs, so your MATLAB code running on the GPU can
include eps('single') and eps('double').
NVIDIA CUDA Driver 3.2 Support
This version of Parallel Computing Toolbox GPU functionality supports only NVIDIA
CUDA device driver 3.2.
Compatibility Considerations
Earlier versions of the toolbox supported earlier versions of CUDA device driver. If you
have an older driver, you must upgrade to CUDA device driver version 3.2.