With #1181
#include <CL/opencl.hpp> has been moved to arm_compute/core/CL/cl_definitions.h but has been changed to #include "include/CL/opencl.hpp"
This breaks when ComputeLibrary is used to build armnn with openCL enabled. (Found on openSUSE Tumbleweed)
Error log from armnn build:
[ 16s] /usr/include/arm_compute/core/CL/cl_definitions.h:28:10: fatal error: include/CL/opencl.hpp: No such file or directory
[ 16s] 28 | #include "include/CL/opencl.hpp"
Changing #include "include/CL/opencl.hpp" to #include <CL/opencl.hpp> in arm_compute/core/CL/cl_definitions.h fixes the issue.
With #1181
#include <CL/opencl.hpp>has been moved toarm_compute/core/CL/cl_definitions.hbut has been changed to#include "include/CL/opencl.hpp"This breaks when ComputeLibrary is used to build armnn with openCL enabled. (Found on openSUSE Tumbleweed)
Error log from armnn build:
Changing
#include "include/CL/opencl.hpp"to#include <CL/opencl.hpp>inarm_compute/core/CL/cl_definitions.hfixes the issue.