-
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 paddle.version.cuda and paddle.version.cudnn API #36556
add paddle.version.cuda and paddle.version.cudnn API #36556
Conversation
Thanks for your contribution! |
✅ This PR's description meets the template requirements! |
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 for API docs
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
istaged = %(istaged)s | ||
commit = '%(commit)s' | ||
with_mkl = '%(with_mkl)s' | ||
|
||
__all__ = ['cuda', 'cudnn'] | ||
|
||
def show(): |
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.
要不paddle.version.show()命令也公开吧,然后show也可以打印cuda和cudnn的版本信息。
这样只需要告诉用户执行paddle.version.show()命令就可以看到版本和编译相关的信息了。
未来还可以添加其他编译信息,比如nccl版本之类的。
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.
好的,我再提个PR把show公开出来。其它需要公开的编译信息后续跟PM讨论。
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.
在PR #36800 中把paddle.version.show()
公开出来。
…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
PR types
New features
PR changes
APIs
Describe
Add
paddle.version.cuda
andpaddle.version.cudnn
APIs, through which thecuda
andcudnn
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 usecuda
andcudnn
as public APIs.英文文档预览链接:
http://10.136.157.23:8090/documentation/docs/zh/faq/index_cn.html?reviewVersion=jenkins-doc-review-1557