Skip to content

Wrong include path #include "include/CL/opencl.hpp" #1277

@ggardet

Description

@ggardet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions