Running the host application – Altera RTE for OpenCL User Manual
Page 40

The hello_world executable will be in the
world\bin
directory.
Related Information
Running the Host Application
To execute the
hello_world.aocx
Altera Offline Compiler Executable file on the SoC, run the host
application you built from the ARM-specific
Makefile
.
1. Log into your SoC board.
2. Copy the
hello_world.aocx
hardware configuration file and the hello_world host executable from the
to the board.
3. Ensure that the LD_LIBRARY_PATH environment variable includes the
$%ALTERAOCLSDKROOT%\host\
arm32\lib
.
4. To execute the kernel on the SoC, at a command prompt, navigate to the host executable directory and
run the hello_world host executable.
Output from Successful Kernel Execution on the Cyclone V SoC Development Kit
When you run the host application to execute your OpenCL kernel on the Cyclone V SoC Development
Kit, the software notifies you of a successful kernel execution.
Example output:
Found 1 OpenCL platforms.
Querying platform for info:
==========================
CL_PLATFORM_NAME = Altera SDK for OpenCL
CL_PLATFORM_VENDOR = Altera Corporation
CL_PLATFORM_VERSION = OpenCL 1.0 Altera SDK for OpenCL, Version
Querying device for info:
========================
CL_DEVICE_NAME = c5soc : Cyclone V SoC Development Kit
CL_DEVICE_VENDOR = Altera
CL_DEVICE_VENDOR_ID = 4466
CL_DEVICE_VERSION = OpenCL 1.0 Altera SDK for OpenCL, Version
CL_DEVICE_AVAILABLE = true
CL_DEVICE_ENDIAN_LITTLE = true
CL_DEVICE_GLOBAL_MEM_CACHE_SIZE = 32768
CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE = 0
CL_DEVICE_GLOBAL_MEM_SIZE = 2147483648
CL_DEVICE_IMAGE_SUPPORT = false
CL_DEVICE_LOCAL_MEM_SIZE = 16384
CL_DEVICE_MAX_CLOCK_FREQUENCY = 1000
CL_DEVICE_MAX_COMPUTE_UNITS = 1
CL_DEVICE_MAX_CONSTANT_ARGS = 8
CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE = 3758096384
CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 3
CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 1024
CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 128
CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 4
CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 2
CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT = 1
CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG = 1
CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT = 1
OCL005-15.0.0
2015.05.04
Running the Host Application
4-11
Getting Started with the Altera RTE for OpenCL for Altera ARMv7-A SoC
Altera Corporation