How can I generate CPU-optimized code for some functions when GPU Coder is used for code generation?
이전 댓글 표시
I have two MATLAB functions that I would like to generate code for, "cpu_fun" and "gpu_fun".
"cpu_fun" has maximum performance when it runs on the CPU, whereas "gpu_fun" has maximum performance when it runs on the GPU.
I would like to configure GPU Coder or MATLAB Coder to generate code such that "cpu_fun" runs on the CPU and "gpu_fun" runs on the GPU for the best performance.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!