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 bench env print #5222

Merged
merged 2 commits into from
Jan 6, 2021
Merged

add bench env print #5222

merged 2 commits into from
Jan 6, 2021

Conversation

deaswang
Copy link
Contributor

add some environment variable print. Because they affect bench result.

Comment on lines 449 to 459
fmt.Println("environment variable list:")
for _, envKey := range []string{"BELLMAN_NO_GPU", "FIL_PROOFS_MAXIMIZE_CACHING", "FIL_PROOFS_USE_GPU_COLUMN_BUILDER",
"FIL_PROOFS_USE_GPU_TREE_BUILDER", "FIL_PROOFS_USE_MULTICORE_SDR", "BELLMAN_CUSTOM_GPU"} {
envValue, found := os.LookupEnv(envKey)
if found {
fmt.Printf("%s=%s\n", envKey, envValue)
} else {
fmt.Printf("%s not set\n", envKey)
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't print this in json mode

Copy link
Contributor Author

Choose a reason for hiding this comment

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

add envVar to BenchResults for json output.

@magik6k magik6k merged commit 8ac71f6 into filecoin-project:master Jan 6, 2021
@deaswang deaswang deleted the bench-env branch January 7, 2021 03:01
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.

3 participants