AnswerDotAI / AnswerDotAI/gpu.cpp

Unable to catch exception in wgpuDeviceSetUncapturedErrorCallback

Abierto
#51 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
4k
Forks
199
Merge medio
2 min
PR fusionados (30 d)
3

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.