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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。