doonny / PipeCNN

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

Compilation de1soc board #133

Open sergio14890 opened 4 years ago

sergio14890 commented 4 years ago

Hey guys! I dont have a de10soc , but i have a de1soc(board). I would like to know if anyone has tried to implement this fantastic work in it. Do you think it is possible to implement on the de1soc board? I downloaded the work, but how should I generate the .aocx files? Since there are quite a few .cl files

sergio14890 commented 4 years ago

When i execute 'makefile' i have this errors: https://i.ibb.co/Fwmn0R2/pipe2.png

arm-linux-gnueabihf-g++ ./host/main.o ../common/ocl_util.o ../common/timer.o -o run.exe -LC:\intelFPGA\17.1\hld\board\de1_soc\arm32\lib -LC:/intelFPGA/17.1/hld/host/arm32/lib -Wl,--no-as-needed -lalteracl -lintel_soc32_mmd -lelf -lstdc++ ./host/main.o: file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit status make: *** [run.exe] Error 1

sergio14890 commented 4 years ago

Hey guys! I solve this erros, changing some makefile settings. However, i have one more error! You know also about it?

Compiler Command: aoc -v -report -seed=3 -I device/RTL -L device/RTL -l rtl_lib.aoclib -board-package=C:\intelFPGA\17.1\hld\board\de1_soc -I C:\intelFPGA\17.1\hld/include/kernel_headers -g device/conv_pipe.cl -o conv.aocx c:/Users/sergi/Downloads/PipeCNN-master/project/device/conv_pipe.cl:1094:16: error: attribute takes one argument __attribute__((max_work_group_size(1,1,LRN_MAX_LOCAL_SIZE))) // (x,y,z) ^ 1 error generated.

doonny commented 4 years ago

v17.1 is not supported. Try v19.1

sergio14890 commented 4 years ago

Doonny you have a bsp19.1 for de1soc board? I read some comments here that users use the de1soc board like me. Or do you have an older version of pipeCNN compatible with bsp17.1 that I can make available?

Alhad1994 commented 4 years ago

Hi sergio, I have the exact same error! how did you solve it

sergio14890 commented 4 years ago

Hey Alhad1994. You can give me your contact?

Alhad1994 commented 4 years ago

yes sure its alhadp007@gmail.com I am working on this project and really would appreciate your help on some errors and topics

nazarihome commented 4 years ago

Hi, I have the same problem, I was wondering if you figured out the solution.

~/Desktop/PipeCNN-master/project$ make
aoc -v -report -seed=3  -I device/RTL -L device/RTL -l rtl_lib.aoclib -board-package=/tools/argus/intelFPGA/19.1/hld/board/trasic/de5net -I /tools/argus/intelFPGA/19.1/hld/include/kernel_headers -g device/conv_pipe.cl -o conv.aocx
Resolving library filenames to full paths
  lib_path = device/RTL
    lib_file = rtl_lib.aoclib
Resolved rtl_lib.aoclib to /home/argus/Desktop/PipeCNN-master/project/device/RTL/rtl_lib.aoclib
  lib_path = .
aoc: Environment checks are completed successfully.
aoc: Cached files in /var/tmp/aocl/ may be used to reduce compilation time
You are now compiling the full flow!!
aoc: Selected default target board de5net_a7
aoc: Running OpenCL parser....
/home/argus/Desktop/PipeCNN-master/project/device/conv_pipe.cl:1094:16: error: attribute takes one argument
__attribute__((max_work_group_size(1,1,LRN_MAX_LOCAL_SIZE))) // (x,y,z)
               ^
1 error generated.
Error: OpenCL parser FAILED.
Refer to conv/conv_pipe.log for details.

Makefile:174: recipe for target 'conv.aocx' failed
make: *** [conv.aocx] Error 1
Alhad1994 commented 4 years ago

attribute((max_work_group_size(1,1,LRN_MAX_LOCAL_SIZE))) // (x,y,z) !! Remove 1,1 and compile again!

doonny commented 3 years ago

you could not run emulator on the FPGA board, emulator is only support on X86 machine

siowedwin commented 3 years ago

@sergio14890 do you manage to implement on de1?

sergio14890 commented 3 years ago

Yes

siowedwin commented 3 years ago

@sergio14890 can i get your contact?