Skip to content

modeld/dmonitoringmodeld: explicitly set input devices - #38044

Merged
Armandpl merged 3 commits into
masterfrom
explicit-tg-devices
May 15, 2026
Merged

modeld/dmonitoringmodeld: explicitly set input devices#38044
Armandpl merged 3 commits into
masterfrom
explicit-tg-devices

Conversation

@Armandpl

@Armandpl Armandpl commented May 15, 2026

Copy link
Copy Markdown
Contributor

set_tinygrad_backend_from_compiled_flags() previously set os.environ['DEV'] before importing tg, both in modeld.py and dmonitoringmodeld.py. but because we preimport all modules tg is shared between processes and only one of those two device gets set as default, while it reads as if you could set a different device per process

@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

@commaci-public

commaci-public commented May 15, 2026

Copy link
Copy Markdown
Contributor

@Armandpl
Armandpl merged commit 4cfd774 into master May 15, 2026
10 checks passed
@Armandpl
Armandpl deleted the explicit-tg-devices branch May 15, 2026 06:09
erikfleischer pushed a commit to erikfleischer/openpilot that referenced this pull request May 22, 2026
* modeld/dmonitoringmodeld: explicitly set input devices

* lint

* ignore metadata json file
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.

2 participants