Getting Started

This tutorial gives step by step instructions to setup and run an example power pacing optimization using Optimal Cycling V0.9.0 on Windows computers. It provides instructions to get up and running using AMD’s implementation of OpenCL for CPUs.

Step 1: Install Microsoft .NET Framework 2.0

  1. If you are using Windows Vista or Windows 7, you can skip this step because you already have it installed on your computer.
  2. Windows XP users, please go to http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5 and download the Microsoft .NET Framework 2.0 installer. Run the installer after it downloads to install.

Step 2: Install AMD Stream SDK

  1. The AMD Stream SDK is required for the OpenCL drivers for your CPU. Download the most current version of the AMD Stream SDK for your system from http://developer.amd.com/gpu/AMDAPPSDK/downloads/Pages/default.aspx
  2. When the installer prompts you, select “Custom” for your installation and press “Next“.

    AMD Stream SDK - Select "Custom" Install

    AMD Stream SDK - Select "Custom" Install

  3. In the next screen, check only the “ATI Stream SDK v2 Developer” for your installation. The other choices are optional.

    AMD Stream SDK - Check Only "ATI Stream SDK v2 Developer"

    AMD Stream SDK - Check Only "ATI Stream SDK v2 Developer"

  4. Press “Next” and the drivers will begin to install.

Step 3: Download Optimal Cycling

  1. Download the latest copy of Optimal Cycling from http://code.google.com/p/optimalcycling/downloads/list
  2. For the purposes of this tutorial, unzip the file to C:\
  3. Open the folder up. It should look like this:

    Optimal Cycling Folder

    Optimal Cycling Folder

Step 4: Open the Windows Command Prompt

  1. For Windows Vista or Windows 7 users, click the Windows Start Orb and type in “cmd.exe” into the search box. Your top result should be “cmd.exe“. Press enter to run it.

    Run cmd.exe in Windows Vista/7

    Run cmd.exe in Windows Vista/7

  2. For Windows XP users, click the Windows Start Button and then click on the “Run…” option. Type in “cmd.exe” into the prompt window that shows up and press enter.

    Run cmd.exe in Windows XP

    Run cmd.exe in Windows XP

  3. You should now have an empty Command Prompt window open similar to what is shown below:

    New Command Prompt

    New Command Prompt

Step 5: Verify Everything is Installed

  1. Change the working directory of the Command Prompt to the Optimal Cycling folder by pasting in the command cd "C:\OptimalCyclingV0_9_0" and press enter. To paste in the Command Prompt, you have to click the window favicon as shown:

    Command Prompt Paste

    Command Prompt Paste

  2. If successful, the Command Prompt should now look like:

    Successful Change of Working Directory to Optimal Cycling

    Successful Change of Working Directory to Optimal Cycling

  3. Paste in OptimalCyclingCMD.exe -ComputeInfo and press enter.
  4. If everything has installed correctly, you will see a list of the available OpenCL compute drivers and devices on your system. This tutorial will assume that your CPU is listed under the Platform Index 0 and Device Index 0.

    List of Available OpenCL Drivers and Devices

    List of Available OpenCL Drivers and Devices

Step 6: Run Your First Power Pacing Example

  1. In the Command Prompt, paste in OptimalCyclingCMD.exe -Dir:"C:\OptimalCyclingV0_9_0\Examples\CCAP_250m" -clean -CPIndex:0 -CDIndex:0 -OutputCLLib and press enter.
  2. Tips: Omit -clean if you want to resume an interrupted optimization. Omit -OutputCLLib if you are using the same CPIndex and CDIndex as in previous simulations to save a bit of time.
  3. Optimal Cycling should now be running and you are running your first power pacing optimization for the simulation data located in C:\OptimalCyclingV0_9_0\Examples\CCAP_250m

    Run Your First Power Pacing Optimization

    Run Your First Power Pacing Optimization

  4. This first example will finish quickly and you should see the finish message when it is done.

Continue this tutorial….

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.