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

[NewExe] update run checks of standalone executor #52313

Merged

Conversation

kangguangli
Copy link
Contributor

@kangguangli kangguangli commented Mar 29, 2023

PR types

Others

PR changes

Others

Describe

Delete the following checks which are used to decide whether use StandaloneExecutor or not:

  1. core.is_compiled_with_mlu(): mlu related code is moved to PaddleCustomDevice now, this line has no effect
  2. async_mode: added in Skip async mode for standalone executor #45599 and StandaloneExecutor now supports those unit tests
  3. allow_cuda_graph_capture: StandaloneExecutor now supports this case

Others

Pcard-67004

@paddle-bot
Copy link

paddle-bot bot commented Mar 29, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@From00 From00 left a comment

Choose a reason for hiding this comment

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

LGTM

if (
compiled_program._build_strategy is not None
and compiled_program._build_strategy.allow_cuda_graph_capture
and not _is_cuda_graph_enable_standalone_executor()
Copy link
Contributor

Choose a reason for hiding this comment

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

如果这个判断不需要了,_is_cuda_graph_enable_standalone_executor()和FLAGS_CUDA_GRAPH_USE_STANDALONE_EXECUTOR环境变量是不是都可以删掉了?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是的,后续打算和其他flag一起删除

Copy link
Contributor

@pangyoki pangyoki left a comment

Choose a reason for hiding this comment

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

LGTM

@kangguangli kangguangli merged commit 8372329 into PaddlePaddle:develop Mar 31, 2023
@kangguangli kangguangli deleted the update_new_exe_run_check branch March 31, 2023 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants