Skip to content

The check for race conditions doesn't consider where clauses #6808

Closed
@abadams

Description

@abadams

Halide should require allow_race_conditions() to be willing to compile the following code, but it doesn't. The where clause introduces a race.

    Func f;
    Var x;
    RDom r(0, 10);
    f(x) = 1;
    r.where(f(0) == 1);
    f(r) = 2;

    f.update().parallel(r);

ATTN @alexreinking

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions