doonny / PipeCNN

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

Xilinx SDSoc: build error #40

Closed kouyss closed 6 years ago

kouyss commented 6 years ago

Hi! I encountered the following problems(the warning part has been tab by bold text) when I bulid debug for my project on zcu102( System configuration:A53openCL Linux; Runtime:OpenCL), SDx2017.4(SDSoc available, SDAccel not available) And I found that the pipe.cl already existed before using the pipe_gen.py, though I still ran the py script with argument(16 8) it was my first time using SDx kit, thank you for your help! ---- error part ----(the warning part has been tab by bold text)

21:19:17**** Incremental Build of configuration Debug for project pcnn ****

make -j40 incremental /opt/Xilinx/SDX/SDK/2017.4/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-g++ -DSDX_PLATFORM=zcu102 -DUSE_XOPEN2K8 -I/opt/Xilinx/SDX/SDx/2017.4/runtime/include/1_2/ -I/opt/Xilinx/SDX/Vivado/2017.4/include/ -O2 -g -Wall -c -fmessage-length=0 -std=c++14 -DSDX_PLATFORM=zcu102 -D__USE_XOPEN2K8 -I/opt/Xilinx/SDX/SDx/2017.4/runtime/include/1_2/ -I/opt/Xilinx/SDX/Vivado/2017.4/include/ -O2 -g -Wall -c -fmessage-length=0 -o "src/common/ocl_util.o" "../src/common/ocl_util.cpp" /opt/Xilinx/SDX/SDK/2017.4/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-g++ -DSDX_PLATFORM=zcu102 -DUSE_XOPEN2K8 -I/opt/Xilinx/SDX/SDx/2017.4/runtime/include/1_2/ -I/opt/Xilinx/SDX/Vivado/2017.4/include/ -O2 -g -Wall -c -fmessage-length=0 -std=c++14 -DSDX_PLATFORM=zcu102 -DUSE_XOPEN2K8 -I/opt/Xilinx/SDX/SDx/2017.4/runtime/include/1_2/ -I/opt/Xilinx/SDX/Vivado/2017.4/include/ -O2 -g -Wall -c -fmessage-length=0 -o "src/common/timer.o" "../src/common/timer.cpp" /opt/Xilinx/SDX/SDK/2017.4/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-g++ -DSDX_PLATFORM=zcu102 -D__USE_XOPEN2K8 -I/opt/Xilinx/SDX/SDx/2017.4/runtime/include/1_2/ -I/opt/Xilinx/SDX/Vivado/2017.4/include/ -O2 -g -Wall -c -fmessage-length=0 -std=c++14 -DSDX_PLATFORM=zcu102 -DUSE_XOPEN2K8 -I/opt/Xilinx/SDX/SDx/2017.4/runtime/include/1_2/ -I/opt/Xilinx/SDX/Vivado/2017.4/include/ -O2 -g -Wall -c -fmessage-length=0 -o "src/project/host/main.o" "../src/project/host/main.cpp"

../src/project/host/main.cpp:21:22: fatal error: ocl_util.h: No such file or directory

include "ocl_util.h"

                  ^

compilation terminated.

**make: *** [src/project/host/main.o] Error 1

make: Waiting for unfinished jobs.... ../src/common/ocl_util.cpp: In function \u2018_cl_program ocl_util::createProgramFromFile(cl_context, const char, _cl_device_id const*, unsigned int)\u2019: ../src/common/ocl_util.cpp:410:22: warning: ignoring attributes on template argument \u2018cl_int {aka int}\u2019 [-Wignored-attributes] scoped_array binary_status(num_devices); ^

21:19:18 Build Finished (took 940ms)`

Regards!

doonny commented 6 years ago

PipeCNN have not been tested by usig SDsoc, you need to use SDAccel

kouyss commented 6 years ago

thank you for your answer.