GPU Coder™ code generation technology produces CUDA® C++ code and executable programs for algorithms. You can write algorithms programmatically by using MATLAB® or graphically in the Simulink® environment. You can generate code for MATLAB functions and Simulink MATLAB Function blocks that are useful for real-time and embedded applications. Because code generation is tightly integrated with the MATLAB and Simulink execution and simulation engines, the generated source code and executable programs match the functional behavior of MATLAB code executions and Simulink simulations to a high degree of accuracy.
The code generator supports two workflows for designing, implementing, and verifying generated CUDA code. This figure shows the design and deployment environment options.