Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Chris Walker
Chris Walker el 16 de Abr. de 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

Respuestas (0)

Categorías

Más información sobre Get Started with GPU Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by