User`s guide
8-5
3 5 7
4 9 2
To see that M is a GPUArray, use the whos or class function.
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:
rand
randi
randn
xor
Also, the handle passed to arrayfun can reference a simple function, a subfunction, a
nested function, or an anonymous function. The function passed to arrayfun can call
any number of its subfunctions. The only restriction is that when running on the GPU,
nested and anonymous functions do not have access to variables in the parent function
workspace. For more information on function structure and relationships, see Types of
Functions.
Enhanced Distributed Array Support
Newly Supported Functions
The following functions are enhanced to support distributed arrays, supporting all forms
of codistributor (1-D and 2DBC):
inv
meshgrid
ndgrid
sort
The following functions can now directly construct codistributed arrays:
codistributed.linspace(m, n, ..., codist)
codistributed.logspace(m, n, ..., codist)
Conversion of Error and Warning Message Identifiers
For R2011b, error and warning message identifiers have changed in Parallel Computing
Toolbox.