MATLAB 코드에서 커널 생성
GPU Coder™는 MATLAB® 코드의 특정 알고리즘 구조와 패턴에 최적화된 CUDA 커널을 생성하고 실행합니다. 생성 코드는 cuFFT, cuSolver, cuBLAS, cuDNN, TensorRT를 포함하여 최적화된 NVIDIA® CUDA 라이브러리를 호출합니다. 생성된 코드를 소스 코드, 정적 라이브러리 또는 동적 라이브러리 형태로 프로젝트에 통합할 수 있으며, 데스크탑, 서버, 그리고 NVIDIA Jetson, DRIVE 및 기타 플랫폼에 내장된 GPU용으로 컴파일할 수 있습니다. 또한 GPU Coder를 사용하여 수기로 작성한 CUDA 코드를 알고리즘과 생성된 코드에 포함시킬 수 있습니다.
앱
함수
코드 구성 설정
객체
도움말 항목
- Configure GPU Code Generation
Configure the code generator using configuration objects or the GPU Coder app.
- Kernels from Element-Wise Loops
Create kernels from MATLAB functions containing scalarized, element-wise math operations.
- Generate GPU Kernels for Reduction Operations
Create kernels from MATLAB functions containing reduction operations.
- Kernels from Library Calls
Target GPU optimized math libraries such as cuBLAS, cuSOLVER, and cuFFT.
- Support for GPU Arrays
Generate CUDA code that uses GPU arrays.
- Use Dynamically Allocated C++ Arrays in Generated Function Interfaces
Understand and use dynamically allocated arrays from the generated CUDA C++ function interfaces.
- Call Custom CUDA Kernels from the Generated Code
Integrate custom CUDA kernels with MATLAB code intended for code generation.
- Call Custom CUDA Device Functions from Generated Code
Integrate custom GPU device functions with MATLAB code intended for code generation.
- Design Patterns
Create kernels for MATLAB functions containing computational design patterns.
- Reduce GPU Memory Allocations By Using GPU Memory Manager
Avoid repetitive memory allocations by creating and reusing memory pools for generated CUDA applications.
- What Is Half Precision?
Introduction to the half-precision data type in MATLAB and Simulink®.
- Half Precision Code Generation Support
C/C++ and GPU code generation support for functions that support half-precision inputs.






