1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use cpp;
/// Returns the description string for an error code.
///
/// Note that this function is not executed on the runtime thread, since it is purely a utility
/// function and should have no side-effects with regards to CUDA devices.
///
/// [CUDA documentation](https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__ERROR.html#group__CUDART__ERROR_1g4bc9e35a618dfd0877c29c8ee45148f1)
///
/// # Arguments
///
/// * `error_code` - CUDA error code.