AnswerDotAI / AnswerDotAI/gpu.cpp

Unable to catch exception in wgpuDeviceSetUncapturedErrorCallback

未關閉
#51 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
4k
分支
199
平均合併
2 分鐘
30 天內合併 PR
3

描述

When calling dispatchKernel throws the runtime exception in wgpuDeviceSetUncapturedErrorCallback, try-catch around dispatchKernel does not catch the exception.
https://github.com/AnswerDotAI/gpu.cpp/blob/main/gpu.h#L791

A thread other than the main thread may be throwing the exception.
https://stackoverflow.com/questions/25282620/catching-exception-from-worker-thread-in-the-main-thread

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從 gpu.h#L791 開始,追蹤在呼叫 dispatchKernel 時 wgpuDeviceSetUncapturedErrorCallback 如何回報錯誤。使用圍繞 dispatchKernel 的 try-catch 重現該失敗,然後驗證預期的例外行為能夠跨越所回報的執行緒邊界正常運作。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp
領域
computer-graphics
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。