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

Clean up async code #631

Merged
merged 31 commits into from
Dec 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fe9931a
Fix asynchronous commands
fyellin Nov 1, 2024
c733c5f
Fix lint problems and codegen problems.
fyellin Nov 1, 2024
f8a71e6
Remove assertion.
fyellin Nov 2, 2024
fbfccb7
Merge branch 'main' into async_handler
fyellin Nov 4, 2024
bebac48
_api.GPU should be the owner of its internal representation.
fyellin Nov 4, 2024
3ae7780
Thank you, ruff!
fyellin Nov 4, 2024
5fb6502
For now, use anyio
fyellin Nov 5, 2024
780ff9b
Continue to find the minimum changes
fyellin Nov 5, 2024
f831e6d
Continue to find the minimum changes
fyellin Nov 5, 2024
3b024be
Merge branch 'main' into async_handler
fyellin Nov 5, 2024
81cf2f7
Allow "await WgpuAwaitable(..)"
fyellin Nov 6, 2024
b08dc8b
Fix ruff format
fyellin Nov 6, 2024
84db283
Attempt to delay installing anyio
fyellin Nov 6, 2024
16e082e
Attempt to delay installing anyio
fyellin Nov 6, 2024
3eb1a59
Add another test.
fyellin Nov 7, 2024
466d3d9
Merge remote-tracking branch 'origin/main' into async_handler
fyellin Nov 7, 2024
54488dc
Changes requested by reviewers
fyellin Nov 7, 2024
45361ce
Change sleep to 0
fyellin Nov 14, 2024
1b903fa
Merge branch 'main' into async_handler
fyellin Nov 19, 2024
cd574c8
Small tweaks/cleanup
almarklein Nov 20, 2024
bf5862c
Implement new_array to prevent premature substruct cg
almarklein Nov 20, 2024
2f150c1
add little debug function that was very useful
almarklein Nov 20, 2024
b207bb7
fix import in test script
almarklein Nov 20, 2024
b1022ed
codegen
almarklein Nov 20, 2024
eedd8c9
Merge branch 'main' into async_handler
fyellin Nov 21, 2024
f650208
Make array store sub-refs, not sub-elements
almarklein Nov 21, 2024
c4d2388
use sniffio instead of anyio
almarklein Dec 6, 2024
9faec92
Merge branch 'main' into async_handler
almarklein Dec 6, 2024
7e6e87e
at least one sleep
almarklein Dec 6, 2024
f5acb60
fix new_array
almarklein Dec 6, 2024
6975af0
fix wheel test
almarklein Dec 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Attempt to delay installing anyio
fyellin committed Nov 6, 2024
commit 16e082eb173abb1e05b7c90106e90429f71b61cf
1 change: 1 addition & 0 deletions wgpu/backends/wgpu_native/_helpers.py
Original file line number Diff line number Diff line change
@@ -277,6 +277,7 @@ def async_wait(self):

def __await__(self):
import anyio

# There is no documentation on what __await__() is supposed to return, but we
# can certainly copy from a function that *does* know what to return
async def wait_for_callback():