diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-11 19:02:54 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-11 19:02:54 +0100 |
| commit | ba16f44c689e0bde3c50052c247c234029c9a816 (patch) | |
| tree | ac8dd17e84075fdc647f47fc498ca52ea26bbe86 /tools | |
| parent | 46e0935ba3b241dcd0e965e492ef8fa270b537ea (diff) | |
fix: Resolve WGPU threading crash in cnn_test
- Release queue reference after submit in texture_readback
- Add final wgpuDevicePoll before cleanup to sync GPU work
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/cnn_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cnn_test.cc b/tools/cnn_test.cc index 3c96800..4ce9637 100644 --- a/tools/cnn_test.cc +++ b/tools/cnn_test.cc @@ -525,6 +525,9 @@ int main(int argc, char** argv) { } } + // Wait for all GPU work to complete before cleanup + wgpuDevicePoll(device, true, nullptr); + // Cleanup wgpuTextureViewRelease(intermediate_views[0]); wgpuTextureViewRelease(intermediate_views[1]); |
