Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
Chris Walker
Chris Walker am 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

Antworten (0)

Kategorien

Mehr zu Get Started with GPU Coder finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by