Coverage for cuda / pathfinder / _dynamic_libs / lib_descriptor.py: 100.00%
5 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-08 01:07 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-08 01:07 +0000
1# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2# SPDX-License-Identifier: Apache-2.0
4"""Per-library descriptor and registry.
6The canonical authored data lives in :mod:`descriptor_catalog`. This module
7provides a name-keyed registry consumed by the runtime search/load path.
8"""
10from __future__ import annotations
12from typing import TypeAlias
14from cuda.pathfinder._dynamic_libs.descriptor_catalog import (
15 DESCRIPTOR_CATALOG,
16 DescriptorSpec,
17)
19# Keep the historical type name for downstream imports.
20LibDescriptor: TypeAlias = DescriptorSpec
23#: Canonical registry of all known libraries.
24LIB_DESCRIPTORS: dict[str, LibDescriptor] = {desc.name: desc for desc in DESCRIPTOR_CATALOG}