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

Reimplement paddle.utils.install_check. #27771

Merged
merged 7 commits into from
Oct 15, 2020
Merged

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Oct 8, 2020

PR types

Others

PR changes

Docs

Describe

  • 按照fluid.install_check.install_check()的实现逻辑,重新实现了paddle.utils.run_check。当前install_check()是分别通过Executor和ParallelExecutor执行一个简单网络,来判断Paddle是否可用。该函数在2.0需要修改,但具体怎么修改还没有决策,因此当前只更新一下文档和示例代码。

    • 尝试在paddle/utils/__init__.py里面加fluid.install_check.run_check的alias,加入之后会引入循环依赖,出现No module named 'paddle.utils'的错误。
  • 原输出:

>>> paddle.fluid.install_check.run_check()
Running Verify Fluid Program ...
W1008 12:53:36.805395  8560 device_context.cc:338] Please NOTE: device: 0, CUDA Capability: 70, Driver API Version: 11.0, Runtime API Version: 10.1
W1008 12:53:36.815687  8560 device_context.cc:346] device: 0, cuDNN Version: 7.6.
Your Paddle Fluid works well on SINGLE GPU or CPU.
W1008 12:55:08.462054  8560 fuse_all_reduce_op_pass.cc:75] Find all_reduce operators: 2. To make the speed faster, some all_reduce ops are fused during training, after fusion, the number of all_reduce ops is 1.
Your Paddle Fluid works well on MUTIPLE GPU or CPU.
Your Paddle Fluid is installed successfully! Let's start deep Learning with Paddle Fluid now
  • 现输出
>>> paddle.utils.run_check()
Running verify PaddlePaddle program ...
W1010 07:21:14.972093  8321 device_context.cc:338] Please NOTE: device: 0, CUDA Capability: 70, Driver API Version: 11.0, Runtime API Version: 10.1
W1010 07:21:14.979770  8321 device_context.cc:346] device: 0, cuDNN Version: 7.6.
PaddlePaddle works well on 1 GPU.
W1010 07:21:48.234915  8321 fuse_all_reduce_op_pass.cc:75] Find all_reduce operators: 2. To make the speed faster, some all_reduce ops are fused during training, after fusion, the number of all_reduce ops is 1.
PaddlePaddle works well on 8 GPUs.
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.
  • 文档预览效果:
    image

@paddle-bot-old
Copy link

paddle-bot-old bot commented Oct 8, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Xreki Xreki changed the title Rearrange the codes of running install_check. Reimplement paddle.utils.install_check. Oct 13, 2020
@Xreki Xreki requested a review from lanxianghit October 15, 2020 02:00
@Xreki Xreki requested a review from TCChenlong October 15, 2020 02:59
Copy link
Contributor

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

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

LGTM

@Xreki Xreki merged commit 947b752 into PaddlePaddle:develop Oct 15, 2020
@Xreki Xreki deleted the api/run_check branch October 15, 2020 03:28
Xreki added a commit to Xreki/Paddle that referenced this pull request Oct 15, 2020
chen-zhiyu pushed a commit to chen-zhiyu/Paddle that referenced this pull request Oct 15, 2020
MingMingShangTian pushed a commit to MingMingShangTian/Paddle that referenced this pull request Oct 15, 2020
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.

3 participants