Timing functions

[Old posts from the commercial version of ArrayFire] Discussion of ArrayFire using CUDA or OpenCL.

Moderator: pavanky

Timing functions

Postby Lars1 » Sun Feb 06, 2011 8:03 am

Hi.

There is a new post at Torben's Corner at: http://wiki.accelereyes.com/wiki/index.php/Timing_Functions.

It describes two small functions, which might come in handy when comparing execution time of MATLAB and Jacket. Both TIMEFUN for MATLAB and GTIMEFUN for Jacket includes proper warm-up, compensation for repetition loops, proper use of gsync/geval (in GTIMEFUN). It is further possible to indicate how long you want the measurement to last - the longer time the more reliable and reproducible. A while statement ensures that the minimum time specified is actually met.

It uses the same principle as the different benchmarking tools from Torben's Corner. Hopefully, it will usable for some of you.

Torben
--
Editor of "Torben's Corner" - http://wiki.accelereyes.com/wiki/index.php/Torben's_Corner
Cluster: 2 x X5670 + 20 x X5570 | 18 x C2070 & 15 x GTX580
Colfax CXT2000i: GTX465 & GTX580 | FX3800 & 4000 | C1060 & C2050
Lars1
 
Posts: 140
Joined: Thu Jul 23, 2009 7:28 am

Return to [archive-commercial] Programming & Development with ArrayFire

cron