Library/ManagedCuda/CudaDNN/CudaDNNContext.cs
/// <summary>
/// cuDNN library functions perform extensive input argument checking before launching
/// GPU kernels.The last step is to verify that the GPU kernel actually started. When
/// a kernel fails to start, CUDNN_STATUS_EXECUTION_FAILED is returned by the
/// corresponding API call. Typically, after a GPU kernel starts, no runtime checks are
/// performed by the kernel itself -- numerical results are simply written to output buffers.<para/>
/// When the CUDNN_BATCHNORM_SPATIAL_PERSISTENT mode is selected in cudnnBatchNormalizationForwardTraining or
/// cudnnBatchNormalizationBackward, the algorithm may encounter numerical overflows
/// where CUDNN_BATCHNORM_SPATIAL performs just fine albeit at a slower speed.<para/>
/// The user can invoke cudnnQueryRuntimeError to make sure numerical overflows did
/// not occur during the kernel execution.Those issues are reported by the kernel that
/// performs computations.
/// </summary>
/// <param name="mode">Remote error query mode.</param>
/// <returns>the user's error code</returns>
cuDNN library functions perform extensive input argument checking before launching
GPU kernels.The last step is to verify that the GPU kernel actually started. When
a kernel fails to start, CUDNN_STATUS_EXECUTION_FAILED is returned by the
corresponding API call. Typically, after a GPU kernel starts, no runtime checks are
performed by the kernel itself -- numerical results are simply written to output buffers.
When the CUDNN_BATCHNORM_SPATIAL_PERSISTENT mode is selected in cudnnBatchNormalizationForwardTraining or
cudnnBatchNormalizationBackward, the algorithm may encounter numerical overflows
where CUDNN_BATCHNORM_SPATIAL performs just fine albeit at a slower speed.
The user can invoke cudnnQueryRuntimeError to make sure numerical overflows did
not occur during the kernel execution.Those issues are reported by the kernel that
performs computations.
cuDNN library functions perform extensive input argument checking before launching GPU kernels . The last step is to verify that the GPU kernel actually started . When a kernel fails to start CUDNN_STATUS_EXECUTION_FAILED is returned by the corresponding API call . Typically after a GPU kernel starts no runtime checks are performed by the kernel itself -- numerical results are simply written to output buffers . When the CUDNN_BATCHNORM_SPATIAL_PERSISTENT mode is selected in cudnnBatchNormalizationForwardTraining or cudnnBatchNormalizationBackward the algorithm may encounter numerical overflows where CUDNN_BATCHNORM_SPATIAL performs just fine albeit at a slower speed . The user can invoke cudnnQueryRuntimeError to make sure numerical overflows did not occur during the kernel execution . Those issues are reported by the kernel that performs computations .
public cudnnStatus QueryRuntimeError(cudnnErrQueryMode mode)
        {
            cudnnStatus rstatus = new cudnnStatus();
            cudnnRuntimeTag tag = new cudnnRuntimeTag();
            res = CudaDNNNativeMethods.cudnnQueryRuntimeError(_handle, ref rstatus, mode, tag);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnQueryRuntimeError", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
            return rstatus;
        }
public cudnnStatus QueryRuntimeError ( cudnnErrQueryMode mode ) { cudnnStatus rstatus = new cudnnStatus ( ) ; cudnnRuntimeTag tag = new cudnnRuntimeTag ( ) ; res = CudaDNNNativeMethods . cudnnQueryRuntimeError ( _handle , ref rstatus , mode , tag ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; return rstatus ; }
cuDNN library functions perform extensive input argument checking before launching
GPU kernels.The last step is to verify that the GPU kernel actually started.
cuDNN library functions perform extensive input argument checking before launching GPU kernels . The last step is to verify that the GPU kernel actually started .
the user's error code
the user ' s error code
mode
cudnnErrQueryMode
Remote error query mode.
Remote error query mode .