Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
768 Views

problem running hello world example on Arria10Gx development kit

Hi, 

I am trying to compile and run hello_world example of OpenCL SDK on Arria10Gx development board. Example fails to run with below error code. kindly check below steps and comment on any wrong doing. We purchased Arria 10Gx development kit from Digikey and with that we received Quartus Prime Pro software Licence. 

 

My setup is:  

Host machine - Ubuntu16.04 

Quartus version - 17.1.0 

aoc version - 17.1.0 

 

 

user@user:~/opencl_examples/hello_world$ bin/host  

Querying platform for info: 

========================== 

CL_PLATFORM_NAME = Intel(R) OpenCL 

CL_PLATFORM_VENDOR = Intel(R) Corporation 

CL_PLATFORM_VERSION = OpenCL 2.0  

 

 

Querying device for info: 

======================== 

CL_DEVICE_NAME = Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz 

CL_DEVICE_VENDOR = Intel(R) Corporation 

CL_DEVICE_VENDOR_ID = 32902 

CL_DEVICE_VERSION = OpenCL 2.0 (Build 475) 

CL_DRIVER_VERSION = 1.2.0.475 

CL_DEVICE_ADDRESS_BITS = 64 

CL_DEVICE_AVAILABLE = true 

CL_DEVICE_ENDIAN_LITTLE = true 

CL_DEVICE_GLOBAL_MEM_CACHE_SIZE = 262144 

CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE = 64 

CL_DEVICE_GLOBAL_MEM_SIZE = 16734322688 

CL_DEVICE_IMAGE_SUPPORT = true 

CL_DEVICE_LOCAL_MEM_SIZE = 32768 

CL_DEVICE_MAX_CLOCK_FREQUENCY = 3400 

CL_DEVICE_MAX_COMPUTE_UNITS = 12 

CL_DEVICE_MAX_CONSTANT_ARGS = 480 

CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE = 131072 

CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = 3 

CL_DEVICE_MEM_BASE_ADDR_ALIGN = 1024 

CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE = 128 

CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR = 1 

CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT = 1 

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 = 1 

Command queue out of order? = true 

Command queue profiling enabled? = true 

Using AOCX: hello_world.aocx 

Context callback: clCreateProgramWithBinary failed 

ERROR: CL_INVALID_BINARY  

Location: ../common/src/AOCLUtils/opencl.cpp:392 

Failed to create program with binary 

 

 

 

Steps I followed are : 

------------------------ 

1. Installed and setup Intel OpenCL SDK for FPGA. 

2. Configured Arria10Gx development kit as per instructions specified in document  

https://www.altera.com/en_us/pdfs/literature/an/an807.pdf 

3. compiled OpenCL kernel with below command and generated hello_world.aocx file. 

aoc device/hello_world.cl -o bin/hello_world.aocx -board a10gx 

4. compiled host program with make command 

5. used "bin/host" command to run host program. 

 

 

Also here is the info about detected devices  

 

user@user:~/opencl_examples/hello_world$ aoc -list-boards 

Board list: 

a10gx 

Board Package: /home/mobiliya/intelFPGA_pro/17.1/hld/board/a10_ref 

 

 

a10gx_hostch 

Board Package: /home/mobiliya/intelFPGA_pro/17.1/hld/board/a10_ref 

Channels: host_to_dev, dev_to_host 

 

 

Thanks. 

regards 

Vinod
0 Kudos
0 Replies