Skip to content

UR opencl plugin compile error when using latest OpenCL-Headers #19648

@sarnex

Description

@sarnex

Describe the bug

The problem is really stupid.

For some reason the OpenCL headers only define a struct member if ANSI strict mode is disabled or using clang, see here and here.

LLVM_ENABLE_PEDANTIC is on by default so ANSI strict mode is enabled (through -pedantic), so the struct member isn't defined so we get a compile error when trying to access it in the UR plugin.

So the build fails with gcc. I added a workaround in #19649.

To reproduce

No response

Environment

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions