Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebNN: add buffer usages for DML backend #47718

Merged
merged 1 commit into from
Aug 21, 2024

Commits on Aug 21, 2024

  1. WebNN: add buffer usages for DML backend

    Exposes MLBufferUsageFlags to MLBufferDescriptor and adds new usages to
    maximize device memory bandwidth. After this change, createBuffer()
    assumes "no usage" by default. To readBuffer() or writeBuffer(), the
    corresponding usage flag must be specified by the web developer.
    Combining usages is allowed but could be inefficient. Usages are
    always validated even if a backend doesn't use it.
    
    webmachinelearning/webnn#542
    
    Bug: 343638938
    Change-Id: I4d78e3f8bacd7cbabce3038c234c062c7c07b095
    Cq-Include-Trybots: luci.chromium.try:win11-blink-rel
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5787041
    Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
    Reviewed-by: Alex Gough <ajgo@chromium.org>
    Reviewed-by: ningxin hu <ningxin.hu@intel.com>
    Reviewed-by: Austin Sullivan <asully@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1344910}
    bbernhar authored and chromium-wpt-export-bot committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    7c4fc06 View commit details
    Browse the repository at this point in the history