setConstantMemory
Set some constant memory on GPU
Description
setConstantMemory(
sets the constant memory in the CUDA kernel kern
,sym
,val
)kern
with symbol name
sym
to contain the data in val
.
val
can be any numeric array, including a gpuArray
. The function errors if the named symbol does not exist or if it is not
big enough to contain the specified data. You can partially fill a constant.
There is no automatic data-type conversion for constant memory, so you must make sure that the supplied data is of the correct type for the constant memory symbol that you are filling.
setConstantMemory(kern,sym1,val1,sym2,val2,...)
sets multiple
constant symbols.
Examples
Input Arguments
Version History
Introduced in R2012a