-
Notifications
You must be signed in to change notification settings - Fork 10
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
Starting to work on coroutines. #243
base: main
Are you sure you want to change the base?
Conversation
073ace5
to
9cfc326
Compare
9cfc326
to
bd3ac04
Compare
bfc157e
to
b59752b
Compare
…erf_analyzer into add-coroutines
std::coroutine_handle<>::from_address(awaitingCoroutine).resume(); | ||
} | ||
} | ||
[[no_unique_address]] std::monostate value_{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary for this?:
In other words if the structs didn't have the same list of data member identifiers, the typedef line wouldn't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for the await_resume at the end, and the various other generic places where we haul the result of the promise.
@@ -0,0 +1,136 @@ | |||
// Copyright 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: rename test_coroutine.cc
This introduces a Coroutine class in the pa namespace, which we will then be able to use for a lightweight scheduler.