Skip to content

Keep topology discovery CUDA-context agnostic - #191

Open
pentschev wants to merge 1 commit into
NVIDIA:mainfrom
pentschev:fix-topology-cuda-context-agnostic
Open

Keep topology discovery CUDA-context agnostic#191
pentschev wants to merge 1 commit into
NVIDIA:mainfrom
pentschev:fix-topology-cuda-context-agnostic

Conversation

@pentschev

Copy link
Copy Markdown
Contributor

Topology discovery must be safe to use independently of CUDA runtime and context state. It should not initialize CUDA, require an active context, create a context, or otherwise change CUDA process state.

This change restores that invariant that was previously modified in #167 and documents it as part of the topology-discovery API contract. It also adds GPU coverage to guard the behavior going forward.

@pentschev
pentschev requested a review from aminaramoon August 18, 2026 14:56
@pentschev pentschev self-assigned this Aug 18, 2026
@pentschev pentschev added bug Something isn't working non-breaking labels Aug 18, 2026
Topology discovery must be safe to use independently of CUDA runtime and
context state. It should not initialize CUDA, require an active context,
create a context, or otherwise change CUDA process state.

This change restores that invariant that was previously modified in
NVIDIA#167 and documents it as part of
the topology-discovery API contract. It also adds GPU coverage to guard
the behavior going forward.
return false;
}
constexpr int min_hw_decompression_cuda_version = 12080;
int driver_version = 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not all hardware has a DE engine even if the driver supports it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, you're right. I realized that and have been discussing this offline as well, I'll link to the existing discussion, in the meantime we should hold merging this.

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

Labels

bug Something isn't working non-breaking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants