Main Content
coder.gpu.nokernel
Pragma to disable kernel creation for loops
Syntax
Description
coder.gpu.nokernel()
is a loop level pragma that when placed
immediately before a for loop prevents the code generator from generating CUDA® kernels for the statements within the loop. This pragma does not require any
input parameters.
This function is a code generation function. It has no effect in MATLAB®.
Examples
Version History
Introduced in R2019a
See Also
Apps
Functions
codegen
|coder.gpu.kernel
|gpucoder.stencilKernel
|coder.gpu.constantMemory
|gpucoder.reduce
|gpucoder.sort