Skip to content

How does Burn solve WGPU parent device being lost due to timeout? #1469

Answered by nathanielsimard
cryscan asked this question in Q&A
Discussion options

You must be logged in to vote

We have our own queue on top of the wgpu device's queue where we aggregate pipelines into a single ComputePassDescriptor, probably helping stabilize the device. However, we do not have special error handling when the parent device is lost because of a long kernel, though I never actually had that problem.

You can look at how we handle compute tasks here: https://github.com/tracel-ai/burn/blob/main/crates/burn-wgpu/src/compute/server.rs

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cryscan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1466 on March 13, 2024 16:54.