Skip to content

Conversation

PatKamin
Copy link
Contributor

Print also PATH and LD_LIBRARY_PATH when these are modified in benchmark commands.

@PatKamin PatKamin requested a review from a team as a code owner October 21, 2025 11:25
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", "")
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 be the same change done above, in line 55

Copy link
Contributor

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")

Copy link
Contributor

@lslusarczyk lslusarczyk left a 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", "")
Copy link
Contributor

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")

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