AnswerDotAI / AnswerDotAI/gpu.cpp

Unable to catch exception in wgpuDeviceSetUncapturedErrorCallback

Offen
#51 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
4k
Forks
199
Ø Merge
2 Min.
Gemergte PRs (30 T.)
3

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.