Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader preemption #6581

Open
DemiMarie opened this issue Nov 21, 2024 · 0 comments
Open

Shader preemption #6581

DemiMarie opened this issue Nov 21, 2024 · 0 comments

Comments

@DemiMarie
Copy link

Is your feature request related to a problem? Please describe.
GPU resets are often very disruptive. For instance, on AMD GPUs, they often kill the Wayland compositor and thus bring down the entire user login session. On macOS, GPU resets still cause glitches in other applications.

Describe the solution you'd like
Insert preemption polls in generated shaders to ensure that a shader terminates before the driver must kill it. This could also allow long-running compute by saving and restoring shader state.

Describe alternatives you've considered
None.

Additional context
WGPU must ensure that shaders terminate to avoid memory unsafety in generated code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant