Altera_Forum
Honored Contributor
7 years agoCompiling the OpenCL Hello World example
Hi,
I am trying to compile the OpenCL Hello World program that came with Nallatech on Windows 10 with OpenCL v18.0, but I am having problems :(. I have a 395AB board and when I issue the compile command, it returns that QSYS Failed and to check the log. The command I used is what was illustrated on the Nallatech documentation: aoc -v -board=p395_hpc_ab hello_world.cl -seed=1The program, hello_world.cl, is very simple: // AOC kernel demonstrating device-side printf call __kernel void hello_world(int thread_id_from_which_to_print_message) { // Get index of the work item unsigned thread_id = get_global_id(0); if(thread_id == thread_id_from_which_to_print_message) { printf("Thread# %u: Hello from Altera's OpenCL Compiler!\n", thread_id); } } Here is the output from aoc: aoc -v -board=p395_hpc_ab hello_world.cl -seed=1
aoc: Environment checks are completed successfully. aoc: Cached files in C:\Users\RM\AppData\Local\aocl may be used to reduce compilation time You are now compiling the full flow!! aoc: Selected target board p395_hpc_ab aoc: Running OpenCL parser.... aoc: OpenCL parser completed successfully. aoc: Optimizing and doing static analysis of code... aoc: Linking with IP library ... Checking if memory usage is larger than 100% aoc: First stage compilation completed successfully. Compiling for FPGA. This process may take a long time, please be patient. Error: Qsys-script FAILED. Refer to hello_world/hello_world.log for details. Checking the log reveals the following. The log is attached... ... 2018.06.01.15:49:01 Info: add_connection board.kernel_clk2x kernel_system.clock_reset2x 2018.06.01.15:49:01 error: add_connection board.kernel_clk2x kernel_system.clock_reset2x: no interface named board.kernel_clk2x.
2018.06.01.15:49:01 Info: add_connection board.kernel_reset kernel_system.clock_reset_reset 2018.06.01.15:49:01 Info: add_connection kernel_system.kernel_mem0 board.kernel_mem0 2018.06.01.15:49:01 Info: add_connection kernel_system.kernel_mem1 board.kernel_mem1 2018.06.01.15:49:01 Info: add_connection kernel_system.kernel_mem2 board.kernel_mem2 2018.06.01.15:49:01 Info: add_connection kernel_system.kernel_mem3 board.kernel_mem3 2018.06.01.15:49:01 Info: add_connection board.kernel_irq kernel_system.kernel_irq 2018.06.01.15:49:01 error: add_connection board.kernel_irq kernel_system.kernel_irq: no interface named board.kernel_irq.
2018.06.01.15:49:01 Info: add_connection board.kernel_cra kernel_system.kernel_cra 2018.06.01.15:49:01 error: add_connection board.kernel_cra kernel_system.kernel_cra: no interface named board.kernel_cra.
2018.06.01.15:49:01 Info: add_connection board.acl_internal_snoop kernel_system.cc_snoop 2018.06.01.15:49:01 error: add_connection board.acl_internal_snoop kernel_system.cc_snoop: no interface named board.acl_internal_snoop.
2018.06.01.15:49:01 Info: add_connection board.kernel_clk kernel_system.cc_snoop_clk 2018.06.01.15:49:01 Info: save_system Why am I getting these errors? Thanks, QG