Skip to content

Conversation

@mdboom
Copy link
Contributor

@mdboom mdboom commented Jan 12, 2026

This is sort of a grab bag of more APIs for cuda.core.system, mainly related to InfoROM inspection and more detailed information about PCI topology.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Jan 12, 2026

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@mdboom mdboom requested a review from Copilot January 12, 2026 21:06
@mdboom
Copy link
Contributor Author

mdboom commented Jan 12, 2026

/ok to test

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds device-related APIs to cuda.core.system, focusing on InfoROM inspection and detailed PCI topology information.

Changes:

  • Added new InfoROM inspection APIs including version retrieval, configuration checksum, and validation
  • Extended PCI information with subsystem ID, class codes, link generation/width details, throughput, and replay counter
  • Added device topology and P2P status query capabilities with support for CPU affinity-based device enumeration
  • Introduced new device properties: index, module_id, minor_number, board_part_number, addressing_mode, display_mode/active, and repair_status

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
cuda_core/tests/system/test_system_device.py Added comprehensive tests for new device APIs including PCI info extensions, InfoROM operations, topology queries, and device properties
cuda_core/docs/source/api.rst Updated API documentation to include new classes and functions for device topology, P2P status, InfoROM, and PCI utilities
cuda_core/cuda/core/system/_inforom.pxi New file implementing InforomInfo class with methods for version retrieval, validation, and BBX flush time tracking
cuda_core/cuda/core/system/_device.pyx Extended PciInfo with new properties and methods, added Device properties and topology methods, new module-level topology/P2P functions, and RepairStatus class
cuda_bindings/cuda/bindings/_nvml.pyx Refactored system event APIs to be more Pythonic, fixed device_get_last_bbx_flush_time to return tuple, added SystemEventData_v1 class, and corrected accounting_stats_dtype reserved field
cuda_bindings/cuda/bindings/_nvml.pxd Updated function signatures to match refactored implementations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

@mdboom
Copy link
Contributor Author

mdboom commented Jan 12, 2026

/ok to test

@mdboom
Copy link
Contributor Author

mdboom commented Jan 12, 2026

/ok to test

@mdboom mdboom self-assigned this Jan 12, 2026
@mdboom mdboom added feature New feature or request cuda.core Everything related to the cuda.core module labels Jan 12, 2026
@mdboom
Copy link
Contributor Author

mdboom commented Jan 13, 2026

/ok to test

@mdboom
Copy link
Contributor Author

mdboom commented Jan 13, 2026

/ok to test

@mdboom
Copy link
Contributor Author

mdboom commented Jan 13, 2026

/ok to test

@mdboom
Copy link
Contributor Author

mdboom commented Jan 13, 2026

/ok to test

@mdboom
Copy link
Contributor Author

mdboom commented Jan 13, 2026

/ok to test

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

Labels

cuda.core Everything related to the cuda.core module feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant