PipeCNN icon indicating copy to clipboard operation
PipeCNN copied to clipboard

Compilation de1soc board

Open sergio14890 opened this issue 4 years ago • 13 comments

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 avatar Apr 14 '20 15:04 sergio14890

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 avatar Apr 15 '20 14:04 sergio14890

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.

sergio14890 avatar Apr 16 '20 14:04 sergio14890

v17.1 is not supported. Try v19.1

doonny avatar Apr 17 '20 01:04 doonny

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?

sergio14890 avatar Apr 17 '20 09:04 sergio14890

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

Alhad1994 avatar Apr 24 '20 08:04 Alhad1994

Hey Alhad1994. You can give me your contact?

sergio14890 avatar Apr 24 '20 08:04 sergio14890

yes sure its [email protected] I am working on this project and really would appreciate your help on some errors and topics

Alhad1994 avatar Apr 24 '20 08:04 Alhad1994

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

nazarihome avatar May 14 '20 19:05 nazarihome

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

Alhad1994 avatar May 14 '20 19:05 Alhad1994

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

doonny avatar Oct 09 '20 00:10 doonny

@sergio14890 do you manage to implement on de1?

siowedwin avatar Mar 21 '21 08:03 siowedwin

Yes

sergio14890 avatar Mar 21 '21 09:03 sergio14890

@sergio14890 can i get your contact?

siowedwin avatar Mar 21 '21 10:03 siowedwin