Visible to Intel only — GUID: mwh1391807306172
Ixiasoft
1. Intel® FPGA RTE for OpenCL™ Pro Edition Getting Started Guide
2. Getting Started with the Intel® FPGA RTE for OpenCL™ Pro Edition for 64-Bit Windows
3. Getting Started with the Intel® FPGA RTE for OpenCL™ Pro Edition for x86_64 Linux Systems
4. Getting Started with the Intel® FPGA RTE for OpenCL™ Pro Edition for Intel® ARMv7-A SoC FPGA
A. Intel® FPGA RTE for OpenCL™ Pro Edition Getting Started Guide Archives
B. Document Revision History of the Intel® FPGA RTE for OpenCL™ Pro Edition Getting Started Guide
2.1. Downloading the Intel® FPGA RTE for OpenCL™ Pro Edition
2.2. Installing the Intel® FPGA RTE for OpenCL™ Pro Edition
2.3. Setting the Intel® FPGA RTE for OpenCL™ Pro 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 an FPGA Board
3.1. Downloading the Intel® FPGA RTE for OpenCL™ Pro Edition
3.2. Installing the Intel® FPGA RTE for OpenCL™ Pro Edition
3.3. Verifying Software Installation
3.4. Installing an FPGA Board
3.5. Updating the Hardware Image on the FPGA
3.6. Executing an OpenCL Kernel on an FPGA
3.7. Uninstalling the Software
3.8. Uninstalling an FPGA Board
4.1.1. Downloading the Intel® FPGA SDK for OpenCL and the SoC EDS
4.1.2. Installing the Intel® FPGA SDK for OpenCL Pro Edition for SoC FPGA
4.1.3. Installing the Intel® SoC FPGA Embedded Development Suite Pro Edition
4.1.4. Recompiling the Linux Kernel Driver
4.1.5. Installing the Intel FPGA RTE for OpenCL Pro Edition onto the SoC FPGA Board
4.1.6. Installing the Intel® Arria® 10 SoC Development Kit
4.1.7. Executing an OpenCL Kernel on an SoC FPGA
4.1.8. Uninstalling the Intel® FPGA RTE for OpenCL™
4.2.1. Downloading the Intel® FPGA SDK for OpenCL™ and the SoC EDS
4.2.2. Installing the Intel® FPGA SDK for OpenCL Pro Edition for SoC FPGA
4.2.3. Installing the Intel® SoC FPGA Embedded Development Suite Pro Edition
4.2.4. Recompiling the Linux Kernel Driver
4.2.5. Installing the Intel FPGA RTE for OpenCL Pro Edition onto the SoC FPGA Board
4.2.6. Installing the Intel® Arria® 10 SoC Development Kit
4.2.7. Executing an OpenCL Kernel on an SoC FPGA
4.2.8. Uninstalling the Intel® FPGA RTE for OpenCL™
Visible to Intel only — GUID: mwh1391807306172
Ixiasoft
2.7.1. Building the Host Application
The <local_path_to exm_opencl_hello_world>\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. The ICD driver links the host against the OpenCL.dll, which requires the FPGA Client Driver (FCD) installed. For installing FCD, refer to Installing an FPGA Board.
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 using the aocl diagnose -icd-only command. If both FCD and ICD are installed correctly, you should see the following output:
ICD System Diagnostics -------------------------------------------------------------------- Using the following location for ICD installation: HKEY_LOCAL_MACHINE\Software\Khronos\OpenCL\Vendors Found 1 icd entry at that location: <INTELFPGAOCLSDKROOT>\windows64\bin\alteracl_icd.dll REG_DWORD 0x0 Checking validity of found icd entries: <INTELFPGAOCLSDKROOT>\windows64\bin\alteracl_icd.dll REG_DWORD 0x0 is correctly registered on the system Using the following location for fcd installations: HKEY_LOCAL_MACHINE\Software\Intel\OpenCL\Boards Found 1 fcd entry at that location: <path_to_OpenCL_BSP>\a10_ref\windows64\bin\altera_a10_ref_mmd.dll REG_DWORD 0x0 Checking validity of found fcd entries: <path_to_OpenCL_bsp>\a10_ref\windows64\bin\altera_a10_ref_mmd.dll REG_DWORD 0x0 is correctly registered on the system Number of Platforms = 1 1. Intel(R) FPGA SDK for OpenCL(TM) | Intel(R) Corporation | OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version <version_number> -------------------------------------------------------------------- ICD diagnostics PASSED --------------------------------------------------------------------
- If neither the FCD nor ICD is setup correctly, refer to the Installing an FPGA Board for FCD setup, and refer to the Accessing Custom Platform-Specific Functions and Linking Your Host Application to the Khronos ICD Loader Library sections of the Intel FPGA SDK for OpenCL Pro Edition Programming Guide for more information.
- Link the host application to the OpenCL.lib library.
- Under the Solution, right-click the host application name and select Properties, and then 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 <local_path_to_exm_opencl_hello_world>\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 is in the <local_path_to_exm_opencl_hello_world>\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.