Difference between revisions of "Example fbench"

From wiki.emacinc.com
Jump to: navigation, search
(Created page with "{{todo|InProgress(11.13.13-15:07->JG+)|Jgreene|project=oe 4,oe 5,ky,md,InProgress}} <big>This procedure provides an overview of how to compile and run the ''fbench'' C example...")
 
Line 11: Line 11:
 
==What it does==
 
==What it does==
  
This is a simple Hello World application for EMAC OE. It outputs ''Hello EMAC OE!'' to the console.
+
This is a benchmarking program for determining floating point accuracy and performance. This project creates 2 programs : ''fbench'' and ''ffbench''. ''fbench'' benchmarks using one algorithm, ''ffbench'' uses another. See project comments for details.
  
Usage:<br />
+
'''Usage for fbench:'''
example<br />
+
 
i.e. : ./example
+
fbench <itercount><br />
 +
Where <itercount> is an optional specification for the number of iterations to be executed, 1000 being the default.<br />
 +
i.e. : ./fbench 123
 +
 
 +
It runs until it is finished and then outputs the results. '''hey mike fbench just seems to hang, never outputs results. maybe the board is just slow. I dunno'''
 +
 
 +
'''Usage for ffbench:'''
 +
 
 +
ffbench
 +
i.e. : ./ffbench
 +
 
 +
It runs until it is finished and then outputs to the terminal whether or not errors were detected in it's results.

Revision as of 17:07, 13 November 2013

TODO: {{#todo:InProgress(11.13.13-15:07->JG+)|Jgreene|oe 4,oe 5,ky,md,InProgress}}

This procedure provides an overview of how to compile and run the fbench C example project. It assumes familiarity with the C programming language and is intended to be used by experienced programmers who are looking to learn the EMAC SDK.

1. Open the C/C++ editing perspective

2. Open the egpc project

3. Build, upload and run



What it does

This is a benchmarking program for determining floating point accuracy and performance. This project creates 2 programs : fbench and ffbench. fbench benchmarks using one algorithm, ffbench uses another. See project comments for details.

Usage for fbench:

fbench <itercount>
Where <itercount> is an optional specification for the number of iterations to be executed, 1000 being the default.
i.e. : ./fbench 123

It runs until it is finished and then outputs the results. hey mike fbench just seems to hang, never outputs results. maybe the board is just slow. I dunno

Usage for ffbench:

ffbench i.e. : ./ffbench

It runs until it is finished and then outputs to the terminal whether or not errors were detected in it's results.