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

转换规则 No. 141/142 #180

Merged
merged 2 commits into from
Jul 24, 2023
Merged

转换规则 No. 141/142 #180

merged 2 commits into from
Jul 24, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 20, 2023

PR Docs

#112

PR APIs

141 torch.cuda.nvtx.range_push
142 torch.cuda.nvtx.range_pop

@paddle-bot
Copy link

paddle-bot bot commented Jul 20, 2023

Thanks for your contribution!

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Jul 20, 2023
@co63oc
Copy link
Contributor Author

co63oc commented Jul 21, 2023

显示NVTX未编译
图片



def test_case_1():
pytorch_code = textwrap.dedent(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种cuda类型的api先在本地跑看是否单测能够通过,截图可以贴到下面。CI没有GPU,无法跑这个单测,可以用torch.cuda is_available()来绕过。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

pytorch_code = textwrap.dedent(
"""
import torch
torch.cuda.nvtx.range_push("msg")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种cuda类型的api先在本地跑看是否单测能够通过,截图可以贴到下面。CI没有GPU,无法跑这个单测,可以用torch.cuda is_available()来绕过。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试截图
图片
图片

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

@zhwesky2010 zhwesky2010 merged commit 61e796b into PaddlePaddle:master Jul 24, 2023
@co63oc co63oc deleted the doc0720_2 branch August 4, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR status: proposed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants