Configuration parameters for CUDA code generation from MATLAB code by using GPU Coder
The coder.gpuConfig
object contains the configuration
parameters that codegen
uses for generating CUDA® MEX, a static library, a dynamically linked library, or an executable
program with GPU Coder™. Pass the object to the codegen
function by using the
-config
option.
cfg = coder.gpuConfig(
creates a code generation configuration object for the specified build type,
which can be CUDA MEX, a static library, a dynamically linked library, or an
executable program. If the Embedded Coder® product is installed, it creates a build_type
)coder.EmbeddedCodeConfig
object for static library, dynamic
library, or executable build types.
cfg = coder.gpuConfig(
creates a code generation configuration object to generate CUDA
build_type
,'ecoder',false)'lib'
, 'dll'
, or 'exe'
output even if the Embedded Coder product is installed.
cfg = coder.gpuConfig(
creates a build_type
,'ecoder',true)coder.EmbeddedCodeConfig
configuration object even if the Embedded Coder product is not installed. However, code generation using a
coder.EmbeddedCodeConfig
object requires an Embedded Coder license.
GPU Coder always sets the PassStructByReference
property
of the code configuration object to true.
For GPU code generation, the IncludeTerminateFcn
property
of the coder.EmbeddedCodeConfig
code
configuration object must be set to true.
codegen
| coder.gpu.constantMemory
| coder.gpu.kernel
| coder.gpu.nokernel
| gpucoder.matrixMatrixKernel
| gpucoder.reduce
| gpucoder.sort
| gpucoder.stencilKernel