Skip to content

Robust access in Dawn has perf issue #1

@gyagp

Description

@gyagp

For Stable Diffusion model (https://mlc.ai/web-stable-diffusion/), inferencing time would be obviously decreased with Chrome option --enable-dawn-features=disable_robustness.

Related bugs:
https://bugs.chromium.org/p/dawn/issues/detail?id=480
https://bugs.chromium.org/p/dawn/issues/detail?id=594

By TQ Chen:
We did find out that the tint index elimination can be helpful. Likely this will involve a simple analysis pass that computes a static upper/lower bound of symbols and use that to decide whether inserting is bound in robustness. We know how to do that in the TVM compiler but are less familiar with the Tint compiler internals.
To provide a bit more details, here is a reference on how to do so in TVM https://github.com/apache/tvm/blob/main/src/arith/const_int_bound.cc, effectively a visitor that goes through the AST, and propagate the int bound of each variable.
Solving this likely means a similar analysis pass in Tint, plus modifying the current robustness transform to check the constant bound. Happy to find time and help as well.

Metadata

Metadata

Assignees

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