AnswerDotAI / AnswerDotAI/gpu.cpp

Unable to catch exception in wgpuDeviceSetUncapturedErrorCallback

Ouverte
#51 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C++
Étoiles
4k
Forks
199
Merge moyen
2 min
PR mergées (30 j)
3

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.