Coverage for cuda / core / system / _repair_status.pxi: 100.00%
3 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#
3# SPDX-License-Identifier: Apache-2.0
6cdef class RepairStatus:
7 """
8 Repair status for TPC/Channel repair.
9 """
10 cdef object _repair_status
12 def __init__(self, handle: int):
13 self._repair_status = nvml.device_get_repair_status(handle) 1a
15 @property
16 def channel_repair_pending(self) -> bool:
17 """
18 `True` if a channel repair is pending.
19 """
20 return bool(self._repair_status.b_channel_repair_pending) 1a
22 @property
23 def tpc_repair_pending(self) -> bool:
24 """
25 `True` if a TPC repair is pending.
26 """
27 return bool(self._repair_status.b_tpc_repair_pending) 1a