-
Notifications
You must be signed in to change notification settings - Fork 791
[Benchmarks] Print all important env vars in debug logs #20415
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
base: sycl
Are you sure you want to change the base?
Conversation
Print also PATH and LD_LIBRARY_PATH when these are modified in benchmark commands.
if add_sycl: | ||
sycl_bin_path = os.path.join(options.sycl, "bin") | ||
env["PATH"] = sycl_bin_path + os.pathsep + env.get("PATH", "") | ||
env_vars["PATH"] = sycl_bin_path + os.pathsep + env.get("PATH", "") |
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.
shouldn't be the same change done above, in line 55
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.
good catch but this change will be then overwritten by line 66
moreover after this change if something was already in env_vars under PATH or LD_LIBRARY_PATH then it will be lost
maybe:
- call
env.update(env_vars)
right after creating env copy - do printing somehow as
env_str = " ".join(f"{key}={env.get(key)}" for key in env_vars.keys() + "LD_LIBRFARY_PATH" + "PATH")
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.
please fix problem with overwriting LD_LIBRARY_PATH and PATH passed in env_vars
if add_sycl: | ||
sycl_bin_path = os.path.join(options.sycl, "bin") | ||
env["PATH"] = sycl_bin_path + os.pathsep + env.get("PATH", "") | ||
env_vars["PATH"] = sycl_bin_path + os.pathsep + env.get("PATH", "") |
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.
good catch but this change will be then overwritten by line 66
moreover after this change if something was already in env_vars under PATH or LD_LIBRARY_PATH then it will be lost
maybe:
- call
env.update(env_vars)
right after creating env copy - do printing somehow as
env_str = " ".join(f"{key}={env.get(key)}" for key in env_vars.keys() + "LD_LIBRFARY_PATH" + "PATH")
Print also PATH and LD_LIBRARY_PATH when these are modified in benchmark commands.