wgpu: device.create_compute_pipeline hangs
I want to run a compute shader. Everything until and including device.create_shader_module
runs without problems, no validation errors.
The next step is to call device.create_compute_pipeline
which hangs. From system monitor i see that this call uses around 3 GB of RAM.
I created a repo where you can reproduce this issue: Issue repo
I probably just misunderstood something about wgsl but i am not sure how to find the problem since naga doesn’t give me any errors.
Is this related to the compute shader being rather big? Could you give me some pointers how to find the problem?
Tried this on different systems: Linux Ubuntu / Mesa Intel Iris Plus Graphics (ICL GT2) Linux Ubuntu / NVIDIA Quadro M4000 Windows 10 / NVIDIA Quadro M4000
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 21 (8 by maintainers)
I ran into this issue on a Macbook Air with an M1 processor. I found the cause to be a large multi-dimensional array in the workgroup memory space. I made a minimal repro case here: https://github.com/vimwitch/webgpu-hang-repro
Some things I noticed during testing:
Apple M1 Macbook Air OSX 12.5