How can I generate CPU-optimized code for some functions when GPU Coder is used for code generation?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Get Started with GPU Coder en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!