Coverage for cuda / core / _utils / driver_cu_result_explanations.py: 66.67%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-29 01:27 +0000

1# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. 

2# SPDX-License-Identifier: Apache-2.0 

3 

4from cuda.bindings import driver 1ab

5from cuda.core._utils.enum_explanations_helpers import get_best_available_explanations 1ab

6 

7 

8def _load_fallback_explanations(): 1ab

9 from cuda.core._utils.driver_cu_result_explanations_frozen import _FALLBACK_EXPLANATIONS 

10 

11 return _FALLBACK_EXPLANATIONS 

12 

13 

14DRIVER_CU_RESULT_EXPLANATIONS = get_best_available_explanations(driver.CUresult, _load_fallback_explanations) 1ab