coder.gpu.kernelfun
coder · scripts/+coder/+gpu/kernelfun.m
KERNELFUN MATLAB GPU Coder compatibility: maps function to GPU kernels
coder.gpu.kernelfun() is a global-level pragma that, under GPU Coder,
attempts to map computation in the enclosing function onto the GPU.
In ordinary MATLAB / Nexus execution it has no effect (MathWorks:
"This is a code generation function. It has no effect in MATLAB.").
Syntax matches MATLAB R2026a: zero inputs, zero outputs. Extra inputs
raise MATLAB:TooManyInputs; requesting an output raises
MATLAB:TooManyOutputs.
See also coder.nullcopy, coder.inline.