thinkoco / c5soc_opencl

DE1SOC DE10-NANO DE10-Standard OpenCL hardware that support VGA and desktop. And Some applications such as usb camera YUYV to RGB , Sobel and so on.
Apache License 2.0
90 stars 39 forks source link

Test Hello_world OpenCL Sample code from Intel #9

Closed tzechienchu closed 4 years ago

tzechienchu commented 6 years ago

I try to test the hello_world program from intel web site

Following Code Running on the DE10-Nano Board use the default image. (No VIP) I chose that so I can try my opencl code interactively. I run these code from Serial Terminal ogin as knat / knat then sudo su change to root folder source the 17.1.sh

root@C5SoC:~# aocl list-devices
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: de10_nano_sharedonly_hdmi : Cyclone V SoC Development Kit

Buffer read/write test passed.

DIAGNOSTIC_PASSED

I try to connect to HDMI , it realy has no output I wonder the board name is wrong it suppose to be de10_nano_sharedonly

root@C5SoC:~# aocl env hello_world.aocx
INPUT_ARGS=device/hello_world.cl -o bin/hello_world.aocx -board c5soc_sharedonly --report

I compile the aocx use board type s5soc_sharedonly because I don't knwo which to chose. the board type has no de10_nano_shareonly to choice. The aocx file build after aocl program to the fpga board, It hang. Can you give us some readme about how to use your image without VIP core.

tzechienchu commented 6 years ago

Problem Solved. I download the BSP from Terasic and move the the folder de10_nano_sharedonly in de10_nano folder to hdl/board/c5soc/hardware And regenerate aocx file. Then It works. The aocl program won't hang. and the host program run correctly.

The way to check if you can generate the aocx for the board is run aoc -list-boards to check if the board you want is in it, aoc -list-boards Board list: c5soc Board Package: /home/scalachu/intelFPGA/17.1/hld/board/c5soc

c5soc_sharedonly Board Package: /home/scalachu/intelFPGA/17.1/hld/board/c5soc

de10_nano_sharedonly Board Package: /home/scalachu/intelFPGA/17.1/hld/board/c5soc

de10_nano_sharedonly_hdmi Board Package: /home/scalachu/intelFPGA/17.1/hld/board/c5soc

de10_standard_sharedonly_vga Board Package: /home/scalachu/intelFPGA/17.1/hld/board/c5soc

de1soc_sharedonly_vga Board Package: /home/scalachu/intelFPGA/17.1/hld/board/c5soc