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
- If you are using Windows Vista or Windows 7, you can skip this step because you already have it installed on your computer.
- 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
- 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
- When the installer prompts you, select “Custom” for your installation and press “Next“.
- In the next screen, check only the “ATI Stream SDK v2 Developer” for your installation. The other choices are optional.
- Press “Next” and the drivers will begin to install.
Step 3: Download Optimal Cycling
- Download the latest copy of Optimal Cycling from http://code.google.com/p/optimalcycling/downloads/list
- For the purposes of this tutorial, unzip the file to C:\
- Open the folder up. It should look like this:
Step 4: Open the Windows Command Prompt
- 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.
- 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.
- You should now have an empty Command Prompt window open similar to what is shown below:
Step 5: Verify Everything is Installed
- 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:
- If successful, the Command Prompt should now look like:
- Paste in OptimalCyclingCMD.exe -ComputeInfo and press enter.
- 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.
Step 6: Run Your First Power Pacing Example
- 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.
- 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.
- 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
- This first example will finish quickly and you should see the finish message when it is done.