-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[WebGPU] Fix stale buffer bindings on first graph-capture replay #28325
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ | |
| // This ensures no access to BufferManager from other classes, avoiding | ||
| // potential misuse. | ||
| friend class WebGpuContext; | ||
| friend class ComputeContextBase; | ||
|
|
||
| private: | ||
| static const webgpu::BufferManager& Get(const ComputeContextBase& context); | ||
|
|
@@ -121,6 +122,11 @@ | |
| return webgpu_context_.Run(*this, program); | ||
| } | ||
|
|
||
| inline Status FlushAndWait() { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is |
||
| webgpu_context_.Flush(BufferManagerAccessor::Get(*this)); | ||
| return webgpu_context_.WaitForQueueIdle(); | ||
|
Check failure on line 127 in onnxruntime/core/providers/webgpu/compute_context.h
|
||
| } | ||
|
hariharans29 marked this conversation as resolved.
|
||
|
|
||
| protected: | ||
| WebGpuContext& webgpu_context_; | ||
| const WebGpuExecutionProvider& ep_; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.