Open wpmed92 opened 1 day ago
Hi Ahmed, thanks for this issue!
Ah, when I added the timeout, I thought it was as good idea in case for some reason wgpu-native did not fulfill the promise. I figured 5 s is plenty of time, but I had not considered it could simply be waiting for computations š¤¦
I think it makes sense to remove the timeout altogether. Probably should get #631 merged first, because it touches the same code.
cc @fyellin
Thank you for the response @almarklein, once the timeout is removed, we'll bump the version back to latest.
Describe the bug
device.queue.read_buffer
times outTo Reproduce
Output:
Observed behavior
When running tinygrad stable_diffusion.py, the buffer read times out when trying to get the output of the decode step. But it is not the buffer reading that takes that long, but to actually run the compute. Manually increasing the timeout from 5.0s here solves it, but in
0.18.1
this just worked (the timeout wasn't there?). Now, we have stable diffusion working on faster machines, but on my local computer, it times out, so I have to manually increase this timeout value, so for now we downgraded to0.18.1
. Can this timeout be increased/disabled?Your environment
OS: MacOS Sonoma 14.4.1 Python version: 3.12 wgpu-py version: >=0.19.0 wgpu backend: Metal