Skip to content

[OpenCL] Failure writing the same vector type from different threads #151913

@sanguinariojoe

Description

@sanguinariojoe

I faced this bug on OpenCL, but it is probably affecting some other tools.

As confirmed here, the following kernel should be working just fine:

__kernel void test_barrier(__global int2* a)
{
   const int i = get_global_id(0);
   a[i].y = i;
   a[i + 1].x = i;
}

However, as discussed here, clang is failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OpenCLclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions