Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function attempts all cuDNN algorithms and outputs performance metrics to a
/// user-allocated array of cudnnConvolutionFwdAlgoPerf_t. These metrics are written
/// in sorted fashion where the first element has the lowest compute time.
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="srcDesc">Handle to the previously initialized input tensor descriptor.</param>
/// <param name="filterDesc">Handle to a previously initialized filter descriptor.</param>
/// <param name="convDesc">Previously initialized convolution descriptor.</param>
/// <param name="destDesc">Handle to the previously initialized output tensor descriptor.</param>
/// <param name="requestedAlgoCount">The maximum number of elements to be stored in perfResults.</param>
/// <param name="returnedAlgoCount">The number of output elements stored in perfResults.</param>
/// <param name="perfResults">A user-allocated array to store performance metrics sorted ascending by
/// compute time.</param>
This function attempts all cuDNN algorithms and outputs performance metrics to a
user-allocated array of cudnnConvolutionFwdAlgoPerf_t. These metrics are written
in sorted fashion where the first element has the lowest compute time.
This function attempts all cuDNN algorithms and outputs performance metrics to a user - allocated array of cudnnConvolutionFwdAlgoPerf_t . These metrics are written in sorted fashion where the first element has the lowest compute time .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnFindConvolutionForwardAlgorithm(cudnnHandle   handle,
                                                                 cudnnTensorDescriptor      srcDesc,
                                                                 cudnnFilterDescriptor      filterDesc,
                                                                 cudnnConvolutionDescriptor convDesc, 
                                                                 cudnnTensorDescriptor      destDesc,
                                                                 int                        requestedAlgoCount,
                                                                 ref int                    returnedAlgoCount,
                                                                 cudnnConvolutionFwdAlgoPerf[] perfResults                                                 
                                                                );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnFindConvolutionForwardAlgorithm ( cudnnHandle handle , cudnnTensorDescriptor srcDesc , cudnnFilterDescriptor filterDesc , cudnnConvolutionDescriptor convDesc , cudnnTensorDescriptor destDesc , int requestedAlgoCount , ref int returnedAlgoCount , cudnnConvolutionFwdAlgoPerf [ ] perfResults ) ;
This function attempts all cuDNN algorithms and outputs performance metrics to a
user-allocated array of cudnnConvolutionFwdAlgoPerf_t.
This function attempts all cuDNN algorithms and outputs performance metrics to a user - allocated array of cudnnConvolutionFwdAlgoPerf_t .
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
srcDesc
cudnnTensorDescriptor
Handle to the previously initialized input tensor descriptor.
Handle to the previously initialized input tensor descriptor .
filterDesc
cudnnFilterDescriptor
Handle to a previously initialized filter descriptor.
Handle to a previously initialized filter descriptor .
convDesc
cudnnConvolutionDescriptor
Previously initialized convolution descriptor.
Previously initialized convolution descriptor .
destDesc
cudnnTensorDescriptor
Handle to the previously initialized output tensor descriptor.
Handle to the previously initialized output tensor descriptor .
requestedAlgoCount
int
The maximum number of elements to be stored in perfResults.
The maximum number of elements to be stored in perfResults .
int
ref
perfResults
cudnnConvolutionFwdAlgoPerf[]
A user-allocated array to store performance metrics sorted ascending by
compute time.
A user - allocated array to store performance metrics sorted ascending by compute time .
returnedAlgoCount
The number of output elements stored in perfResults.
The number of output elements stored in perfResults .