How can I generate CPU-optimized code for some functions when GPU Coder is used for code generation?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with GPU Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!