Hi, all!
Could you help me to solve the following issue.
I am trying to launch OpenCL examples on Angstrom custom build for DE1-SoC.
The version of OpenCL SDK, Quartus and other tools is 16.1
Firstly I've built vector_add example and successfully launch it on standard Angstrom image (3.12 ltsi kernel) for DE1-Soc
Then I created Angstrom 2015 with 4.2 kernel according to these instructions:
https://rocketboards.org/foswiki/vie...romOnSoCFPGA_1
I copied kernel, rootfs and dts files created be Angstrom to sdcard as recommended here:
https://rocketboards.org/foswiki/vie...on_the_SD_card
Angstrom Linux launched successfully.
After that I downloaded OpenCL RTE for 16.1 version and compiled OpenCL driver for new 4.2 kernel. After running
opencl_init.sh driver loaded successfully.
aocl diagnostic also finished with success:
aocl diagnose: Running diagnostic from /home/root/aocl-rte-16.1.0-1.arm32/board/c5soc/arm32/bin
Verified that the kernel mode driver is installed on the host machine.
Using platform: Intel(R) FPGA SDK for OpenCL(TM)
Board vendor name: Intel(R) Corporation
Board name: de1soc_sharedonly : Cyclone V SoC Development Kit
Buffer read/write test passed.
DIAGNOSTIC_PASSED
Then I slightly change and recompile examples (change platform name from Altera to Intel).
Unfortunately for this new configuration examples hangs.
Result of launching
hello_world example:
Querying platform for info:
==========================
CL_PLATFORM_NAME = Intel(R) FPGA SDK for OpenCL(TM)
CL_PLATFORM_VENDOR = Altera Corporation
CL_PLATFORM_VERSION = OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 16.1
Querying device for info:
========================
CL_DEVICE_NAME = de1soc_sharedonly : Cyclone V SoC Development Kit
CL_DEVICE_VENDOR = Intel(R) Corporation
CL_DEVICE_VENDOR_ID = 4466
CL_DEVICE_VERSION = OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 16.1
CL_DRIVER_VERSION = 16.1
CL_DEVICE_ADDRESS_BITS = 64
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 = 536870912
CL_DEVICE_IMAGE_SUPPORT = true
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 = 134217728
CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 3
CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 8192
CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 1024
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
CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE = 0
Command queue out of order? = false
Command queue profiling enabled? = true
Using AOCX: hello_world.aocx
Reprogramming device [0] with handle 1
Kernel initialization is complete.
Launching the kernel... (after this line program hangs)
Result of launching
vector_add example:
Initializing OpenCL
Platform: Intel(R) FPGA SDK for OpenCL(TM)
Using 1 device(s)
de1soc_sharedonly : Cyclone V SoC Development Kit
Using AOCX: vectorAdd.aocx
Reprogramming device [0] with handle 1
Launching for device 0 (1000000 elements) (after this line program hangs)
I tried took
top.rbf file created by OPenCL SDK for hello_world example, rename this file to
opencl.rbf and exchange this file with original one on my sdcard. It is not help.
Could you help me to solve this issue or recommend the way for debugging the system?