Skip to content

Handle empty deviceProperties during ingestion - #125

Merged
lasch merged 1 commit into
IBM:mainfrom
nicksunka:nikhil/empty-device-properties
Aug 18, 2026
Merged

Handle empty deviceProperties during ingestion#125
lasch merged 1 commit into
IBM:mainfrom
nicksunka:nikhil/empty-device-properties

Conversation

@nicksunka

Copy link
Copy Markdown
Contributor

Acelyzer currently assumes incoming deviceProperties contains exactly one entry during metadata merge. Fresh PyTorch 2.13 Spyre traces can contain deviceProperties: [], which causes ingestion to fail before verification runs.

This change allows an empty deviceProperties list while preserving the existing restriction against multiple incoming entries.

Added a regression test covering deviceProperties: [].

Validation:

  • focused regression test passes
  • ingestion tests: 15 passed
  • full test suite: 205 passed, 5 xfailed
  • fresh PyTorch 2.13 Granite trace successfully reaches verification and returns PASS

Signed-off-by: Nikhil Sunka <NikhilSunka@icloud.com>
@nicksunka
nicksunka force-pushed the nikhil/empty-device-properties branch from 9fa2861 to c650662 Compare August 18, 2026 13:47

@lasch lasch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@lasch

lasch commented Aug 18, 2026

Copy link
Copy Markdown
Member

That empty deviceProperties case is something to look into on the torch side. It will be needed as soon as any attempts for multi-device profiles become relevant and is also something that would get us more feature-parity with GPUs

@lasch
lasch merged commit a219fe6 into IBM:main Aug 18, 2026
2 checks passed
@nicksunka

Copy link
Copy Markdown
Contributor Author

Thanks Lars! Good point - I’ll also look into why deviceProperties is empty on the Torch/PyTorch 2.13 side, especially with the multi-device profiling implications. Thanks for the quick review and merge!

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