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!