Altera_Forum
Honored Contributor
7 years agoHost Pipe example : failed set arg 0, error code -30
Hi,
All new on the forum, thanks by advance for your reading and answer. problem : I am currently trying to run the demo code for opencl host pipes on an Arria X (https://www.altera.com/support/support-resources/design-examples/design-software/opencl/host-pipe.html) And am getting an error code -30 (CL_INVALID_ARG) at the first call to clSetKernelArg, enqueuing the host pipe.scenario : Intel FPGA tools are installed into /opt/intelfpga_pro/ 1 - > I run the settings.sh script, output : source /opt/intelFPGA_pro/17.1/settings.sh INTELFPGAOCLSDKROOT is set to /opt/intelFPGA_pro/17.1/hld. Using that. Found a Quartus directory at /opt/intelFPGA_pro/17.1/quartus. Using that. AOCL_BOARD_PACKAGE_ROOT is set to /opt/intelFPGA_pro/17.1/hld/board/xpressgxa10_lp1150_hpc_17.1.0_b240_ultra. Using that. Adding /opt/intelFPGA_pro/17.1/hld/bin to PATH Adding /opt/intelFPGA_pro/17.1/hld/host/linux64/lib to LD_LIBRARY_PATH Adding /opt/intelFPGA_pro/17.1/hld/board/xpressgxa10_lp1150_hpc_17.1.0_b240_ultra/linux64/lib to LD_LIBRARY_PATH 2 -> I compile the host program with make, 3 -> I compile the kernel with aoc -v -board=..._hostch loopback_hostpipe.cl , I run the host : 4 -> I run the host after copying the .aocx file alongside it. ./host Using AOCX: loopback_hostpipe.aocx Reprogramming device [0] with handle 1 Creating kernel (loopback_hostpipe) failed set arg 0. Error code: -30 additionnal informations : When reproducing the scenario after commenting the lines where host pipes are set args for the kernel, the two others arguments are properly set and the host will fail running because of the lack of kernel args, so I suppose the error comes from the host pipes. Thanks again for reading, and for your help ! Felix