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

Make sure diagnostic variables aren't set when benchmarking #238

Merged
merged 4 commits into from
Feb 5, 2021

Conversation

Krovatkin
Copy link
Contributor

No description provided.

conftest.py Outdated
@@ -25,8 +25,21 @@ def set_fuser(fuser):
torch._C._jit_override_can_fuse_on_gpu(True)
torch._C._jit_set_texpr_fuser_enabled(True)

def check_environment():
checks = [
# VAR_NAME, forbidden value
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this read VAR_NAME, required value?

sounds backward to me. IIUC you want to make sure logging is off, for instance?

def pytest_sessionstart(session):
try:
check_environment()
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about moving this check into the util file, and calling check_environment from inside check_machine_configured? Any reason to separate them?

@Krovatkin Krovatkin merged commit 2b4f5f3 into master Feb 5, 2021
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