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

add paddle.version.cuda and paddle.version.cudnn API #36556

Merged
merged 9 commits into from
Oct 27, 2021

Conversation

pangyoki
Copy link
Contributor

@pangyoki pangyoki commented Oct 19, 2021

PR types

New features

PR changes

APIs

Describe

Add paddle.version.cuda and paddle.version.cudnn APIs, through which the cuda and cudnn versions of the installation package can be obtained.

  • When compiling cuda 10.2 version of paddle
    图片

  • When compiling cpu version of paddle
    图片

Because we want to expose version information to users, we expose the paddle.version directory and use cuda and cudnn as public APIs.

英文文档预览链接:
http://10.136.157.23:8090/documentation/docs/zh/faq/index_cn.html?reviewVersion=jenkins-doc-review-1557

图片
图片

@paddle-bot-old
Copy link

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

@paddle-bot-old
Copy link

paddle-bot-old bot commented Oct 19, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

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 for API docs

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

istaged = %(istaged)s
commit = '%(commit)s'
with_mkl = '%(with_mkl)s'

__all__ = ['cuda', 'cudnn']

def show():
Copy link
Contributor

Choose a reason for hiding this comment

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

要不paddle.version.show()命令也公开吧,然后show也可以打印cuda和cudnn的版本信息。
这样只需要告诉用户执行paddle.version.show()命令就可以看到版本和编译相关的信息了。
未来还可以添加其他编译信息,比如nccl版本之类的。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的,我再提个PR把show公开出来。其它需要公开的编译信息后续跟PM讨论。

Copy link
Contributor Author

@pangyoki pangyoki Oct 27, 2021

Choose a reason for hiding this comment

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

在PR #36800 中把paddle.version.show()公开出来。

@pangyoki pangyoki merged commit d65f41d into PaddlePaddle:develop Oct 27, 2021
pangyoki added a commit to pangyoki/Paddle that referenced this pull request Oct 27, 2021
…PI (PaddlePaddle#36556)

* add paddle.version.cuda and paddle.version.cudnn API

* fix little bug

* fix bug

* add doc string

* fix mkdir error

* fix windows path

* fix new paddle/version path

* fix unittest

* fix format
XiaoguangHu01 pushed a commit that referenced this pull request Oct 28, 2021
…PI (#36556) (#36795)

* add paddle.version.cuda and paddle.version.cudnn API

* fix little bug

* fix bug

* add doc string

* fix mkdir error

* fix windows path

* fix new paddle/version path

* fix unittest

* fix format
ghost pushed a commit to piotrekobi/Paddle that referenced this pull request Nov 3, 2021
)

* add paddle.version.cuda and paddle.version.cudnn API

* fix little bug

* fix bug

* add doc string

* fix mkdir error

* fix windows path

* fix new paddle/version path

* fix unittest

* fix format
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