Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Benchmarks] fix mutable default argument bugs#21309

Open
PatKamin wants to merge 1 commit intointel:sycl from
PatKamin:fix-builds
Open

[Benchmarks] fix mutable default argument bugs #21309
PatKamin wants to merge 1 commit intointel:sycl from
PatKamin:fix-builds

Conversation

@PatKamin
Copy link
Contributor

@PatKamin PatKamin commented Feb 18, 2026

The shared mutable default env_vars={} in utils.run() was being modified in-place by the add_sycl=True path (prepending sycl lib/bin to PATH and LD_LIBRARY_PATH). Subsequent calls inherited those stale values, causing the local sycl lib path to appear multiple times in LD_LIBRARY_PATH (visible in build/run command logs).

The shared mutable default `env_vars={}` in `utils.run()` was being
modified in-place by the `add_sycl=True` path (prepending sycl lib/bin
to PATH and LD_LIBRARY_PATH). Subsequent calls inherited those stale
values, causing the local sycl lib path to appear multiple times in
LD_LIBRARY_PATH (visible in build/run command logs).
@PatKamin PatKamin requested a review from a team as a code owner February 18, 2026 12:46
input=None,
):
try:
if env_vars is None:
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk Feb 18, 2026

Choose a reason for hiding this comment

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

why not one-linear like above (env_vars = dict(env_vars) if env_vars else {})?

):
env_vars = env_vars.copy()
env_vars = dict(env_vars) if env_vars else {}
if ld_library is None:
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk Feb 18, 2026

Choose a reason for hiding this comment

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

hmm why this ld_library change? does it make a difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lukaszstolarczuk lukaszstolarczuk lukaszstolarczuk left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /