PipeCNN: ERROR: CL_INVALID_BINARY

Dear Prof. @doonny , I use De1-SoC and Angstrom v2014.12 - Kernel , I changed, const char *vendor_name = "altera"; in derictory …/project/host/main.cpp because of when *vendor_name = “Intel” there was Error “Unable to find the desired OpenCL platform.”

now there is new error;

./run.exe conv.aocx
***************************************************
PipeCNN: An OpenCL-Based FPGA Accelerator for CNNs
***************************************************
Platform: Altera SDK for OpenCL                                                           
Using 1 device(s)                                                                         
  Device 0: de1soc_sharedonlyCyclone V SoC Development Kit                                
Device OpenCL Version: OpenCL 1.0 Altera SDK for OpenCL, Version 16.0                     
Device Max Compute Units: 1                                                               
Device Max WorkGroup Size: 2147483647                                                     
Device Max WorkItem Size: 2147483647                                                      
Device Global Memory Size: 512 MBytes                                                     
Device Local Memory Size: 16 KBytes                                                       
Device Max Clock Freq: 1000 Mhz 


Loading kernel/binary from file conv.aocx 
ERROR: CL_INVALID_BINARY
Location: ../common/ocl_util.cpp:415
Failed to create program with binary

So i want to know, There are another things do i want to change ? (because of changing const char *vendor_name = "altera";)?

Thank You

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 53 (4 by maintainers)

Most upvoted comments

@Fnajjar if you able to complete the HW emulation also you can help to @DasunBhanuka to get it work. cause you both have same problem right. Thank You.

Dear @doonny , @thinkoco , @Fnajjar When i compile the ./run.exe conv.aocx (two generate file from the host computer) in my arm based de1-soc FPGA, the error occurs,

Loading kernel/binary from file conv.aocx
ERROR: CL_INVALID_BINARY
Location: ../common/ocl_util.cpp:415
Failed to create program with binary

and in location : …/common/ocl_util.cpp:415 there is;

#ifdef FPGA_DEVICE
  cl_program program = clCreateProgramWithBinary(context, num_devices,devices,         binary_lengths,
    (const unsigned char **) binaries.get(), binary_status, &status);
  checkError(status, "Failed to create program with binary");

So i think the problem is in const unsigned char **. Because I found some differences in x86 and arm32. Can you please help me to slove this problem?