Visible to Intel only — GUID: opz1518804646536
Ixiasoft
1. Intel® FPGA RTE for OpenCL™ Standard Edition Getting Started Guide
2. Getting Started with the Intel® FPGA RTE for OpenCL™ Standard Edition for 64-Bit Windows
3. Getting Started with the Intel® FPGA RTE for OpenCL™ Standard Edition for x86_64 Linux Systems
4. Getting Started with the Intel® FPGA RTE for OpenCL™ Standard Edition for Intel® ARMv7-A SoC FPGA
A. Document Revision History of the Intel® FPGA RTE for OpenCL™ Standard Edition Getting Started Guide
2.1. Downloading the Intel® FPGA RTE for OpenCL™ Standard Edition
2.2. Installing the Intel® FPGA RTE for OpenCL™
2.3. Setting the Intel® FPGA RTE for OpenCL™ Standard Edition User Environment Variables
2.4. Verifying Software Installation
2.5. Installing an FPGA Board
2.6. Updating the Hardware Image on the FPGA
2.7. Executing an OpenCL Kernel on an FPGA
2.8. Uninstalling the Software
2.9. Uninstalling the FPGA Board
3.1. Downloading the Intel® FPGA RTE for OpenCL™ Standard Edition
3.2. Installing the Intel® FPGA RTE for OpenCL™
3.3. Setting the Intel® FPGA RTE for OpenCL™ Standard Edition User Environment Variables
3.4. Verifying Software Installation
3.5. Installing an FPGA Board
3.6. Updating the Hardware Image on the FPGA
3.7. Executing an OpenCL Kernel on an FPGA
3.8. Uninstalling the Software
3.9. Uninstalling the FPGA Board
4.1.1. Downloading the Intel® FPGA SDK for OpenCL Standard Edition and the SoC EDS Standard Edition
4.1.2. Installing the Intel® FPGA SDK for OpenCL Standard Edition for SoC FPGA
4.1.3. Installing the Intel® SoC FPGA Embedded Development Suite Standard Edition
4.1.4. Recompiling the Linux Kernel Driver
4.1.5. Installing the Intel FPGA RTE for OpenCL Standard Edition onto the SoC FPGA Board
4.1.6. Installing the Cyclone V SoC Development Kit
4.1.7. Executing an OpenCL Kernel on an SoC FPGA
4.1.8. Uninstalling the Intel® FPGA RTE for OpenCL™ Standard Edition
4.2.1. Downloading the Intel® FPGA SDK for OpenCL™ Standard Edition and the SoC EDS Standard Edition
4.2.2. Installing the Intel® FPGA SDK for OpenCL Standard Edition for SoC FPGA
4.2.3. Installing the Intel® SoC FPGA Embedded Development Suite Standard Edition
4.2.4. Recompiling the Linux Kernel Driver
4.2.5. Installing the Intel FPGA RTE for OpenCL Standard Edition onto the SoC FPGA Board
4.2.6. Installing the Cyclone V SoC Development Kit
4.2.7. Executing an OpenCL Kernel on an SoC FPGA
4.2.8. Uninstalling the Intel® FPGA RTE for OpenCL™ Standard Edition
Visible to Intel only — GUID: opz1518804646536
Ixiasoft
2.7.1. Building the Host Application
The <path_to_exm_opencl_hello_world_x64_windows_<version>>\hello_world\hello_world.sln file contains the host solution. After you open this .sln file in Microsoft Visual Studio, you can build the OpenCL™ host application in the main.cpp file.
If you are using Microsoft Visual Studio, you need the FCD, and the Installable Client Driver (ICD) from Khronos. To set up Microsoft Visual Studio with FCD and ICD, perform the following tasks prior to building the host application:
- Verify that FCD and ICD are set up correctly. You must set up FCD and ICD manually if invoking the aocl install <path_to_customplatform> utility command fails to set them up. For instructions, refer to the Accessing Custom Platform-Specific Functions and Linking to the ICD Loader Library on Windows sections of the Intel® FPGA RTE for OpenCL™ Standard Edition Programming Guide for more information.
- Link the host application to the OpenCL.lib library.
- Under the solution properties, select Configuration Properties > Linker > Input.
- In the Additional Dependencies field, enter OpenCL.lib.
Attention: Because you are using FCD and ICD, do not link the host program to alteracl.lib or to your Custom Platform's MMD libraries directly.
To build the hello_world host application, perform the following tasks:
- Open the <path_to_exm_opencl_hello_world_x64_windows_<version>>\hello_world\hello_world.sln file in Microsoft Visual Studio.
- Verify that the build configuration is correct. The default build configuration is Debug, but you can use Release. You must select the appropriate option as the solution platform (for example, for x64 architecture, select x64).
- Build the solution by selecting the Build > Build Solution menu option, or by pressing the F7 key.
The hello_world.exe executable will be in the <path_to_exm_opencl_hello_world_x64_windows_<version>>\hello_world\bin folder.
- Verify that the build is correct. An output ending with a message similar to the one shown below notifies you of a successful build:
1> Build succeeded. 1> 1> Time Elapsed 00:00:03:29 ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Attention: You can ignore the LNK4009: PDB 'vc90.pdb' was not found with... warnings because they have no effect on the build. The compiler might issue this type of warning messages if you have built your Windows libraries using a previous version of Microsoft Visual Studio.