ManagedCuda.NVRTC.NVRTCNativeMethods.nvrtcGetErrorString C# (CSharp) Method

nvrtcGetErrorString() public static method

helper function that stringifies the given #nvrtcResult code, e.g., NVRTC_SUCCESS to "NVRTC_SUCCESS". For unrecognized enumeration values, it returns "NVRTC_ERROR unknown"
public static nvrtcGetErrorString ( nvrtcResult result ) : string
result nvrtcResult CUDA Runtime Compiler API result code.
return string
        public static string nvrtcGetErrorString(nvrtcResult result)
        {
            IntPtr ptr = nvrtcGetErrorStringInternal(result);
            return Marshal.PtrToStringAnsi(ptr);
        }