Difference between revisions of "Example fbench"

From wiki.emacinc.com
Jump to: navigation, search
Line 2: Line 2:
 
<big>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.</big>
 
<big>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.</big>
  
====1. Open the ''C/C++'' editing perspective====
+
== Opening, Building and Uploading the Project Files ==
  
====2. Open the ''egpc'' project====
+
<big>1. Open the C/C++ editing perspective.</big>
  
====3. Build, upload and run====
+
stub
<br /><br />
 
  
==What it does==
+
<big>2. Open the fbench project files.</big>
 +
 
 +
stub
 +
 
 +
<big>3. Build the fbench project.</big>
 +
 
 +
stub
 +
 
 +
<big>4. Upload the fbench binary to the target machine.</big>
 +
 
 +
stub
 +
 
 +
==Usage and Behavior==  
  
 
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.
 
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.

Revision as of 14:16, 27 November 2013

TODO: {{#todo:InProgress(11.14.13-09:25->JG+)|Jgreene|oe 4,oe 5,jg,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.

Opening, Building and Uploading the Project Files

1. Open the C/C++ editing perspective.

stub

2. Open the fbench project files.

stub

3. Build the fbench project.

stub

4. Upload the fbench binary to the target machine.

stub

Usage and Behavior

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 to the terminal. hey mike fbench appears to have a bug or something. It's supposed to finish and output some results but it just keeps running until you tell it to "stop the timer". It also gives me a funny message at one point "Measured run time in seconds should be divided by 0". Strange. maybe the board is just slow, I dunno. You want me to track down the problem in the code?

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.