coder.gpuConfig
Create GPU code generation configuration
Syntax
Description
creates a CUDA® MEX configuration object cfg = coder.gpuConfigcfg. To customize the GPU code
generation properties, use the coder.GpuCodeConfig object stored in the GpuConfig property
of cfg. To generate CUDA code, use the code configuration object with the -config
option of the codegen command.
creates a code generation configuration object for the build type
cfg = coder.gpuConfig(build_type)build_type.
creates a cfg = coder.gpuConfig(build_type,"ecoder",ecoder_flag)coder.EmbeddedCodeConfig object when the Embedded Coder® flag ecoder_flag is true or
1.
Examples
Input Arguments
Output Arguments
Alternative Functionality
App
You can use the GPU Coder app to configure the code generator and generate CUDA code. For more information, see Generate Code by Using the GPU Coder App.
Version History
Introduced in R2017b