Skip to content

Long running compute kernels in wgpu? #2353

Answered by cwfitzgerald
phoekz asked this question in Q&A
Discussion options

You must be logged in to vote

My best guess is that TDR applies to queue submissions not individual dispatches, so you should try to split up the work into submissions of reasonable time (maybe 100ms). This will give you lots of headroom if you underestimate the time things will take. As an extension, you could use timestamp queries to dynamically adjust the load per submit bases on feedback.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@phoekz
Comment options

@phoekz
Comment options

Answer selected by phoekz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants