feval
Evaluate kernel on GPU
Description
feval(
evaluates the CUDA kernel kern
,x1,...,xn
)kern
with the arguments
x1,...,xn
. The number of input arguments, n
, must be
equal to the value of the NumRHSArguments
property of
kern
, and their types must match the description in the
ArgumentTypes
property of kern
. The input data can
be regular MATLAB® data, GPU arrays, or both.
[
returns multiple output arguments from the evaluation of the kernel. Each output argument
corresponds to the value of the non-constant pointer inputs to the CUDA kernel after it has
executed. The output from y1,...,ym
] = feval(kern
,x1,...,xn
)feval
running a kernel on the GPU is always a
gpuArray
, even if all the inputs are stored in host memory. The number
of output arguments, m
, must not exceed the value of the
MaxNumLHSArguments
property of kern
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2010b