Azzera filtri
Azzera filtri

using tic/toc to estimate speed up in C++ and GPU

2 visualizzazioni (ultimi 30 giorni)
Chris Walker
Chris Walker il 16 Apr 2013
I am preparing a pilot program which will eventually get transcribed into C++ and some of the code on to a GPU. I want to try to estimate how much speed up I will gain when I do this. However, using tic/toc, some of my matlab code is 'mexed', some is vectorised and some uses slow for loops. There will be varying degrees of speed up for various pieces of code. Is there an easy way to estimate speedup? I note there used to be a matlab function called 'flops' which might have served the purpose. Another way would be to deliberately run everything 'unmexed' and unvectorised and then compare the speedup for simple for loops and then estimate for the more complex cases...
Thanks in advance for any help Chris Walker

Risposte (0)

Categorie

Scopri di più su Get Started with GPU Coder in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by