Coverage for cuda / core / _utils / runtime_cuda_error_explanations.py: 66.67%
6 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-29 01:27 +0000
« 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
4from cuda.bindings import runtime 1ab
5from cuda.core._utils.enum_explanations_helpers import get_best_available_explanations 1ab
8def _load_fallback_explanations(): 1ab
9 from cuda.core._utils.runtime_cuda_error_explanations_frozen import _FALLBACK_EXPLANATIONS
11 return _FALLBACK_EXPLANATIONS
14RUNTIME_CUDA_ERROR_EXPLANATIONS = get_best_available_explanations(runtime.cudaError_t, _load_fallback_explanations) 1ab