Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error with CONFIG_ACL_GPU=y in RasbperryPi3 B #25

Closed
ghimiredhikura opened this issue Jul 1, 2018 · 3 comments
Closed

Build Error with CONFIG_ACL_GPU=y in RasbperryPi3 B #25

ghimiredhikura opened this issue Jul 1, 2018 · 3 comments

Comments

@ghimiredhikura
Copy link

Hardware: RaspberryPi3 Model B

this is how I build compute library
$ scons Werror=1 debug=0 asserts=0 neon=0 opencl=1 examples=1 os=linux arch=armv7a -j3

makefile.config

#-------------------------------------------------------------------------------
#  Template configuration for compiling
#
#  First copy makefile.config.example to makefile.config (assume you are on the 
#  root directory). 
#
#  $ cp makefile.config.example makefile.config
#
#  Next modify makefile.config, and then compile by
#
#  $ make
#
#  or build in parallel with 8 threads
#
#  $ make -j8
#-------------------------------------------------------------------------------

# Set the target arch 
#CONFIG_ARCH_ARM64=y

# Enable Compiling Optimization
CONFIG_OPT_CFLAGS = -O2

# uncomment to build the reference operators wrapped on Caffe
# CONFIG_CAFFE_REF=y

# Set the path of caffe used for compile and link,
# if caffe's operator calculation is enabled.
# CAFFE_ROOT = /home/firefly/caffe

# Enable GPU support by Arm Computing Library
CONFIG_ACL_GPU=y
#


# Use BLAS as the operator implementation
#
CONFIG_ARCH_BLAS=y

# Set the path of ACL 
ACL_ROOT=/home/pi/Desktop/project/ComputeLibrary

# Enable other serializers 
CONFIG_CAFFE_SUPPORT=y
# CONFIG_MXNET_SUPPORT=y
# CONFIG_ONNX_SUPPORT=y
# CONFIG_TF_SUPPORT=y

# Enable Wrappers
# CONFIG_FRAMEWORK_WRAPPER=y

tengine build error

cc1plus: all warnings being treated as errors
/home/pi/Desktop/project/tengine/scripts/makefile.build:108: recipe for target '/home/pi/Desktop/project/tengine/build/driver/acl_graph/acl_graph_driver.o' failed
make[2]: *** [/home/pi/Desktop/project/tengine/build/driver/acl_graph/acl_graph_driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
g++ -std=c++11    -I.  -O2 -Wall -g -fPIC  -I/home/pi/Desktop/project/tengine/driver/include  -I/home/pi/Desktop/project/tengine/driver/../include  -I/home/pi/Desktop/project/tengine/driver/../core/include -I/home/pi/Desktop/project/tengine/driver/../operator/include  -I/home/pi/Desktop/project/tengine/driver/../executor/include  -Werror -DCONFIG_ACL_GPU=1  -I/home/pi/Desktop/project/ComputeLibrary -I/home/pi/Desktop/project/ComputeLibrary/include -I/home/pi/Desktop/project/ComputeLibrary/utils -c acl_conv.cpp -o /home/pi/Desktop/project/tengine/build/driver/acl/acl_conv.o 
cc1plus: all warnings being treated as errors
/home/pi/Desktop/project/tengine/scripts/makefile.build:108: recipe for target '/home/pi/Desktop/project/tengine/build/driver/acl/acl_driver.o' failed
make[2]: *** [/home/pi/Desktop/project/tengine/build/driver/acl/acl_driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
/home/pi/Desktop/project/tengine/scripts/makefile.build:108: recipe for target '/home/pi/Desktop/project/tengine/build/driver/acl_graph/acl_graph_device.o' failed
make[2]: *** [/home/pi/Desktop/project/tengine/build/driver/acl_graph/acl_graph_device.o] Error 1
make[2]: Leaving directory '/home/pi/Desktop/project/tengine/driver/acl_graph'
/home/pi/Desktop/project/tengine/scripts/makefile.build:72: recipe for target 'acl_graph' failed
make[1]: *** [acl_graph] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/CLHelpers.h:28:0,
                 from /home/pi/Desktop/project/ComputeLibrary/arm_compute/runtime/CL/CLScheduler.h:27,
                 from acl_conv.cpp:40:
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘_cl_context*(const cl_context_properties*, cl_device_type, void (*)(const char*, const void*, size_t, void*), void*, cl_int*) {aka _cl_context*(const int*, long long unsigned int, void (*)(const char*, const void*, unsigned int, void*), void*, int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:81:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clCreateContextFromType);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘_cl_command_queue*(cl_context, cl_device_id, cl_command_queue_properties, cl_int*) {aka _cl_command_queue*(_cl_context*, _cl_device_id*, long long unsigned int, int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:82:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clCreateCommandQueue);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_context, cl_context_info, size_t, void*, size_t*) {aka int(_cl_context*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:83:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetContextInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_program, cl_uint, _cl_device_id* const*, const char*, void (*)(cl_program, void*), void*) {aka int(_cl_program*, unsigned int, _cl_device_id* const*, const char*, void (*)(_cl_program*, void*), void*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:84:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clBuildProgram);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, cl_kernel, cl_uint, const size_t*, const size_t*, const size_t*, cl_uint, _cl_event* const*, _cl_event**) {aka int(_cl_command_queue*, _cl_kernel*, unsigned int, const unsigned int*, const unsigned int*, const unsigned int*, unsigned int, _cl_event* const*, _cl_event**)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:85:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueNDRangeKernel);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_kernel, cl_uint, size_t, const void*) {aka int(_cl_kernel*, unsigned int, unsigned int, const void*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:86:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clSetKernelArg);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_kernel) {aka int(_cl_kernel*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:87:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clReleaseKernel);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘_cl_program*(cl_context, cl_uint, const char**, const size_t*, cl_int*) {aka _cl_program*(_cl_context*, unsigned int, const char**, const unsigned int*, int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:88:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clCreateProgramWithSource);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘_cl_mem*(cl_context, cl_mem_flags, size_t, void*, cl_int*) {aka _cl_mem*(_cl_context*, long long unsigned int, unsigned int, void*, int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:89:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clCreateBuffer);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_kernel) {aka int(_cl_kernel*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:90:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clRetainKernel);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘_cl_kernel*(cl_program, const char*, cl_int*) {aka _cl_kernel*(_cl_program*, const char*, int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:91:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clCreateKernel);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_program, cl_program_info, size_t, void*, size_t*) {aka int(_cl_program*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:92:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetProgramInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue) {aka int(_cl_command_queue*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:93:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clFlush);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue) {aka int(_cl_command_queue*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:94:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clFinish);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_program) {aka int(_cl_program*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:95:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clReleaseProgram);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_context) {aka int(_cl_context*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:96:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clRetainContext);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘_cl_program*(cl_context, cl_uint, _cl_device_id* const*, const size_t*, const unsigned char**, cl_int*, cl_int*) {aka _cl_program*(_cl_context*, unsigned int, _cl_device_id* const*, const unsigned int*, const unsigned char**, int*, int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:97:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clCreateProgramWithBinary);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue) {aka int(_cl_command_queue*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:98:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clReleaseCommandQueue);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘void*(cl_command_queue, cl_mem, cl_bool, cl_map_flags, size_t, size_t, cl_uint, _cl_event* const*, _cl_event**, cl_int*) {aka void*(_cl_command_queue*, _cl_mem*, unsigned int, long long unsigned int, unsigned int, unsigned int, unsigned int, _cl_event* const*, _cl_event**, int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:99:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueMapBuffer);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_program) {aka int(_cl_program*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:100:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clRetainProgram);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_program, cl_device_id, cl_program_build_info, size_t, void*, size_t*) {aka int(_cl_program*, _cl_device_id*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:101:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetProgramBuildInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, cl_mem, cl_bool, size_t, size_t, void*, cl_uint, _cl_event* const*, _cl_event**) {aka int(_cl_command_queue*, _cl_mem*, unsigned int, unsigned int, unsigned int, void*, unsigned int, _cl_event* const*, _cl_event**)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:102:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueReadBuffer);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, cl_mem, cl_bool, size_t, size_t, const void*, cl_uint, _cl_event* const*, _cl_event**) {aka int(_cl_command_queue*, _cl_mem*, unsigned int, unsigned int, unsigned int, const void*, unsigned int, _cl_event* const*, _cl_event**)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:103:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueWriteBuffer);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_event) {aka int(_cl_event*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:104:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clReleaseEvent);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_context) {aka int(_cl_context*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:105:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clReleaseContext);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue) {aka int(_cl_command_queue*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:106:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clRetainCommandQueue);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, cl_mem, void*, cl_uint, _cl_event* const*, _cl_event**) {aka int(_cl_command_queue*, _cl_mem*, void*, unsigned int, _cl_event* const*, _cl_event**)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:107:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueUnmapMemObject);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_mem) {aka int(_cl_mem*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:108:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clRetainMemObject);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_mem) {aka int(_cl_mem*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:109:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clReleaseMemObject);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_device_id, cl_device_info, size_t, void*, size_t*) {aka int(_cl_device_id*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:110:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetDeviceInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_platform_id, cl_device_type, cl_uint, _cl_device_id**, cl_uint*) {aka int(_cl_platform_id*, long long unsigned int, unsigned int, _cl_device_id**, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:111:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetDeviceIDs);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_event) {aka int(_cl_event*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:112:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clRetainEvent);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_uint, _cl_platform_id**, cl_uint*) {aka int(unsigned int, _cl_platform_id**, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:113:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetPlatformIDs);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_kernel, cl_device_id, cl_kernel_work_group_info, size_t, void*, size_t*) {aka int(_cl_kernel*, _cl_device_id*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:114:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetKernelWorkGroupInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, cl_command_queue_info, size_t, void*, size_t*) {aka int(_cl_command_queue*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:115:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetCommandQueueInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_kernel, cl_kernel_info, size_t, void*, size_t*) {aka int(_cl_kernel*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:116:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetKernelInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_event, cl_profiling_info, size_t, void*, size_t*) {aka int(_cl_event*, unsigned int, unsigned int, void*, unsigned int*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:117:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clGetEventProfilingInfo);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘void*(cl_context, cl_svm_mem_flags, size_t, cl_uint) {aka void*(_cl_context*, long long unsigned int, unsigned int, unsigned int)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:118:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clSVMAlloc);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, cl_bool, cl_map_flags, void*, size_t, cl_uint, _cl_event* const*, _cl_event**) {aka int(_cl_command_queue*, unsigned int, long long unsigned int, void*, unsigned int, unsigned int, _cl_event* const*, _cl_event**)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:120:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueSVMMap);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, void*, cl_uint, _cl_event* const*, _cl_event**) {aka int(_cl_command_queue*, void*, unsigned int, _cl_event* const*, _cl_event**)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:121:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueSVMUnmap);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_command_queue, _cl_event**) {aka int(_cl_command_queue*, _cl_event**)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:122:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clEnqueueMarker);
     ^~~~~~~~~~~~~~~~~~~~
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:79:38: error: ignoring attributes on template argument ‘cl_int(cl_uint, _cl_event* const*) {aka int(unsigned int, _cl_event* const*)}’ [-Werror=ignored-attributes]
     std::function<decltype(func_name)> func_name##_ptr = nullptr
                                      ^
/home/pi/Desktop/project/ComputeLibrary/arm_compute/core/CL/OpenCL.h:123:5: note: in expansion of macro ‘DECLARE_FUNCTION_PTR’
     DECLARE_FUNCTION_PTR(clWaitForEvents);
     ^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
/home/pi/Desktop/project/tengine/scripts/makefile.build:108: recipe for target '/home/pi/Desktop/project/tengine/build/driver/acl/acl_conv.o' failed
make[2]: *** [/home/pi/Desktop/project/tengine/build/driver/acl/acl_conv.o] Error 1
make[2]: Leaving directory '/home/pi/Desktop/project/tengine/driver/acl'
/home/pi/Desktop/project/tengine/scripts/makefile.build:72: recipe for target 'acl' failed
make[1]: *** [acl] Error 2
make[1]: Leaving directory '/home/pi/Desktop/project/tengine/driver'
Makefile:131: recipe for target 'driver' failed
make: *** [driver] Error 2
@ghimiredhikura
Copy link
Author

ghimiredhikura commented Jul 2, 2018

Possible solution: build tengine driver without -Werror option.

It seems that those build error are due to -Werror (warning error) option in tengine driver Makefile.
Therefore I rebuild tengine without -Werror option, and build was successful.

driver-$(CONFIG_CAFFE_REF)+=caffe/
driver-$(CONFIG_ACL_GPU)+=acl_graph/
driver-$(CONFIG_ACL_GPU)+=acl/

obj-y+=cpu/ plugin/  $(driver-y)


INC_DIR+=-I$(shell pwd)/include 
INC_DIR+=-I$(shell pwd)/../include 
INC_DIR+=-I$(shell pwd)/../core/include
INC_DIR+=-I$(shell pwd)/../operator/include 
INC_DIR+=-I$(shell pwd)/../executor/include 

CXXFLAGS+=

COMMON_CFLAGS+=$(CONFIG_OPT_CFLAGS)
#COMMON_CFLAGS+= -Wall -g -fPIC  $(INC_DIR) -Werror
COMMON_CFLAGS+= -Wall -g -fPIC  $(INC_DIR)

ifeq ($(CONFIG_CAFFE_REF),y)
    COMMON_CFLAGS+= -DCONFIG_CAFFE_REF=1
endif

ifeq ($(CONFIG_ARCH_ARM64),y)
    COMMON_CFLAGS+= -DCONFIG_ARCH_ARM64=1
endif

ifeq ($(CONFIG_ACL_GPU),y)
    COMMON_CFLAGS+= -DCONFIG_ACL_GPU=1
endif

ifeq ($(CONFIG_ARCH_ARM32),y)
    COMMON_CFLAGS+= -DCONFIG_ARCH_ARM32=1
endif

install:

but got cl::Error in runtime

$ ./build/tests/bin/bench_sqz -d acl_opencl

Output

pi@raspberrypi:~/Desktop/project/tengine $ ./build/tests/bin/bench_sqz -d acl_opencl
terminate called after throwing an instance of 'cl::Error'
  what():  empty
Aborted

@cyberfire
Copy link

@ghimiredhikura

Just a double check, do you use the Arm Compute library v18.05?

Thanks,

Haitao

@ghimiredhikura
Copy link
Author

Yes I used v18.05 version. And I used openblas library.
It will be nice, if you can check in Pi3 device.
Btw, is there any plan to support neon instructions from ACL library. I think currently it only supports opencl from ACL.

Thanks,

Deepak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants