-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add Cuda event and stream API #32460
Add Cuda event and stream API #32460
Conversation
Thanks for your contribution! |
b128268
to
c369baf
Compare
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from paddle.fluid.core import CUDAStream as Stream |
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.
这两个类及相应的API需要加一下单测吗?
from . import streams | ||
from .streams import * | ||
|
||
__all__ = [ |
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.
API的层级问题还需要找 @jzhang533 @XiaoguangHu01 看一下
Sorry to inform you that e83b17b's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
If device is None, the device is the current device. Default: None. | ||
|
||
Returns: | ||
CUDAStream: the stream o the device. |
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.
CUDAStream: the stream o the device. ->CUDAStream: the stream of the device.
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.
Done, thanks.
python/paddle/device/__init__.py
Outdated
@@ -30,7 +30,8 @@ | |||
'is_compiled_with_xpu', | |||
'is_compiled_with_cuda', | |||
'is_compiled_with_rocm', | |||
'is_compiled_with_npu' | |||
'is_compiled_with_npu', | |||
'cuda' |
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.
__all__列表默认为对用户公开的API,这个是目录吧,不用加到__all__列表里
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.
已经修改
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.
LG API
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.
LGTM Docs
PR types
New features
PR changes
APIs
Describe
Add cuda API streams and event