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
Include platform information to chainer.print_runtime_info()
#5163
Conversation
Thanks for contribution! (Maybe we should add it to our issue template...) |
Adding |
Thanks for sharing and I'm sorry that I couldn't find the method 🙇 Because I remain this PR to be opened because I want to get the runtime information by CLI. (Currently, this PR enables users to get runtime information by |
I'd rather not introduce
|
How about adding platform info (as in your first commit) to |
@toslunar thanks, I updated! |
Sorry, I meant info of OS (Linux, Darwin, ...):bow: |
…nto add-environment-template
Ah sorry, I misunderstood 🙏 |
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 otherwise commented.
chainer/_runtime_info.py
Outdated
if cuda.available: | ||
self.cuda_info = cuda.cupyx.get_runtime_info() | ||
else: | ||
self.cuda_info = None | ||
|
||
def __str__(self): | ||
s = six.StringIO() | ||
s.write('''OS/Platform: {}\n'''.format(self.platform_version)) |
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.
How about Platform
instead of OS/Platform
?
Thanks for the feedback, I updated 🙏 |
Jenkins, test this please. |
chainer.print_runtime_info()
Jenkins CI test (for commit 6642d81, target branch master) succeeded! |
LGTM! |
Include platform information to `chainer.print_runtime_info()`
Inspired by SpaCy.
I add a script in
/tools
.This script returns environmental information which are needed to create new issue.
(currently it does not support CuDNN... I will really appreciate any feedback)
usage
python -m chainer.tools.info
returns
In my laptop (macOS), I get...
And in my server (Ubuntu), I get