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

Record PyTorch git version and cuda version in the result. #315

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

xuzhao9
Copy link
Contributor

@xuzhao9 xuzhao9 commented Mar 11, 2021

CUDA version information is useful if we want to abtest CUDA regression in the future.
Adding PyTorch git version to easier nail down the exact commit used by TorchBench.

@@ -42,6 +42,9 @@ def pytest_configure(config):

def pytest_benchmark_update_machine_info(config, machine_info):
machine_info['pytorch_version'] = torch.__version__
machine_info['pytorch_git_version'] = torch.version.git_version
machine_info['cuda_version'] = torch.version.cuda
Copy link
Contributor

Choose a reason for hiding this comment

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

is this safe (in cases where not torch.has_cuda)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If cuda is not available, torch.version.cuda will be None (tested on my macbook). Do you think it is fine?

Copy link
Contributor

@wconstab wconstab left a comment

Choose a reason for hiding this comment

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

lgtm except the little question

@xuzhao9 xuzhao9 merged commit 93ba9d8 into pytorch:master Mar 12, 2021
@xuzhao9 xuzhao9 deleted the add-cuda-version branch March 12, 2021 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants