doonny / PipeCNN

An OpenCL-based FPGA Accelerator for Convolutional Neural Networks
Apache License 2.0
1.22k stars 370 forks source link

When i try to make file the following error was generated. How I can fix this problem? #138

Open GUUTA opened 4 years ago

GUUTA commented 4 years ago

make ../common/src/AOCLUtils/opencl.cpp: In function ‘_cl_program aocl_utils::createProgramFromBinary(cl_context, const char, _cl_device_id const, unsigned int)’: ../common/src/AOCLUtils/opencl.cpp:388:22: warning: ignoring attributes on template argument ‘cl_int’ {aka ‘int’} [-Wignored-attributes] 388 | scoped_array binary_status(num_devices); | ^ /usr/bin/ld: skipping incompatible /home/guta/intelFPGA/18.1/hld/host/arm32/lib/libalteracl.so when searching for -lalteracl /usr/bin/ld: skipping incompatible /home/guta/intelFPGA/18.1/hld/board/c5soc/arm32/lib/libintel_soc32_mmd.so when searching for -lintel_soc32_mmd /usr/bin/ld: cannot find -lintel_soc32_mmd /usr/bin/ld: skipping incompatible /home/guta/intelFPGA/18.1/hld/host/arm32/lib/libelf.so when searching for -lelf collect2: error: ld returned 1 exit status Makefile:77: recipe for target 'bin/host' failed make: *** [bin/host] Error 1

doonny commented 4 years ago

for ARM processor, you need cross platform g++ compiler to do the job.

GUUTA commented 4 years ago

Doonny/Pipecnn Thank you!

I have fixed an early problem. I'm trying to run your project to see the effect. But, I can't fix the problem like this aoc -v -report -profile -o device/RTL -L device/RTL -l rtl_lib.aoco rtl_lib.aocl -I /home/guta/intelFPGA/18.1/hld/include/kernel_headers -g device/pipe.cl -v conv.aocx aoc: Warning: no argument provided for the option -profile, will enable profiling for all kernels by default Resolving library filenames to full paths lib_path = device/RTL lib_file = rtl_lib.aoco lib_path = . lib_file = rtl_lib.aoco Error: Cannot find the following specified library files: rtl_lib.aoco Makefile:139: recipe for target 'con.aocx' failed make: *** [conv.aocx] Error 1

thank You for your time and consideration.

warm regards Guta

On Fri, May 8, 2020 at 5:49 AM Dong Wang notifications@github.com wrote:

for ARM processor, you need cross platform g++ compiler to do the job.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/doonny/PipeCNN/issues/138#issuecomment-625599831, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPU56RCXALIOSZH56PEM3DRQNXKJANCNFSM4M3JQFBA .

doonny commented 4 years ago

Please carefully read the instructions provided in this repo. You need to compile the RTL library first.

datnguyen263 commented 3 years ago

@doonny i try to make with board DE1_SoC_Opencl v18.1 but error:

aoc: Linking with IP library ... Compiler Error: Couldn't achieve user-specified II for loop at c:\Users\PipeCNN\project_intel/c:/Users/PipeCNN/project_intel/device/conv_pipe.cl:751 Error: Verilog generator FAILED. Refer to conv/conv_pipe.log for details.

make: *** [conv.aocx] Error 1

Thank you for your time and consideration.

doonny commented 3 years ago

v18.1 is not supported, please v20.1

datnguyen263 commented 3 years ago

v18.1 is not supported, please v20.1 @doonny https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=205&No=836&PartNo=4

I dont have v20.1. How about v16.0 or v14.0?

doonny commented 3 years ago

I am affraid not.