Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
••••
Reverse EngineeringReverse-engineered 8BitDo firmware encryption(27.09.2026 um 01:18 Uhr)
••••
Sichere ProgrammierungHow Hindsight Turned Deployment #1017 Into the Fix for #1057(29.09.2026 um 06:25 Uhr)
••••••
Reverse EngineeringReverse-engineered 8BitDo firmware encryption(27.09.2026 um 01:18 Uhr)
••••
Sichere ProgrammierungHow Hindsight Turned Deployment #1017 Into the Fix for #1057(29.09.2026 um 06:25 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

trunk/831220dd65077edda7d4062a8a8157496ef47e9a: Make profiler resilient to duplicate flow start IDs (#184792)

Summary: Problem The PyTorch profiler crashes when an active backend produces duplicate async-flow correlation IDs. TransferEvents::setParents() asserts on collisions outside ROCm builds, so workloads abort instead of completing. Why The…

0
↗ Quelle (github.com)
Reagiere als Erste:r — dein Feedback zählt!

Summary:

Problem

The PyTorch profiler crashes when an active backend produces duplicate async-flow correlation IDs. TransferEvents::setParents() asserts on collisions outside ROCm builds, so workloads abort instead of completing.


Why

The assert was originally added in PR #102424 to defend against a libkineto segfault class that is independent of flow_map. flow_map only affects parent-tree linkage in the PyTorch event tree; a duplicate ID can produce wrong CPU-op attribution for a GPU kernel in key_averages() / tree views but never a memory-safety issue. Crashing is disproportionate.


Fix

On collision, poison the flow_map slot (set to null) so the second-pass lookup produces no override. The colliding flow end then retains its kineto runtime-correlation parent set earlier in the first pass — approximate but never wrong. The change also removes the #ifdef USE_ROCM gate so all backends benefit. Count dropped links and emit a single summary TORCH_WARN so the symptom is discoverable beyond the rate-limited TORCH_WARN_ONCE.


Test

A new test_profiler_collection.cpp covers the duplicate-flow path. It uses

the PrivateUse1 machinery to mock the profiler. We can put new unit tests for

collection.cpp in this file.


Reviewed By: aaronenyeshi, NicolasHug


Differential Revision: D105979688


Pull Request resolved: #184792

Approved by: https://github.com/NicolasHug, https://github.com/malfet, https://github.com/aaronenyeshi

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten trunk/831220dd65077edda7d4062a8a8157496ef47e9a: Make profiler resilient to duplicate flow start IDs (#184792)

Thematisch verwandte Begriffe: trunk831220dd65077edda7d4062a8a8157496ef47e9a, Make, profiler, resilient · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-102367 | mall4j through 4.0 contains an insufficient session expiration vulnerab…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag