Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function attempts all available cuDNN algorithms for cudnnRNNForwardTraining, using user-allocated GPU memory, and outputs performance metrics to a user-allocated array of cudnnAlgorithmPerformance_t. These metrics are written in sorted fashion where the first element has the lowest compute time. 
/// </summary>
This function attempts all available cuDNN algorithms for cudnnRNNForwardTraining, using user-allocated GPU memory, and outputs performance metrics to a user-allocated array of cudnnAlgorithmPerformance_t. These metrics are written in sorted fashion where the first element has the lowest compute time.
This function attempts all available cuDNN algorithms for cudnnRNNForwardTraining using user - allocated GPU memory and outputs performance metrics to a user - allocated array of cudnnAlgorithmPerformance_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 cudnnFindRNNForwardTrainingAlgorithmEx(cudnnHandle handle,
                                                    cudnnRNNDescriptor rnnDesc,
                                                    int seqLength,
                                                    cudnnTensorDescriptor[] xDesc,
                                                    CUdeviceptr x,
                                                    cudnnTensorDescriptor hxDesc,
                                                    CUdeviceptr hx,
                                                    cudnnTensorDescriptor cxDesc,
                                                    CUdeviceptr cx,
                                                    cudnnFilterDescriptor wDesc,
                                                    CUdeviceptr w,
                                                    cudnnTensorDescriptor[] yDesc,
                                                    CUdeviceptr y,
                                                    cudnnTensorDescriptor hyDesc,
                                                    CUdeviceptr hy,
                                                    cudnnTensorDescriptor cyDesc,
                                                    CUdeviceptr cy,
                                                    float findIntensity,
                                                    int requestedAlgoCount,
                                                    ref int returnedAlgoCount,
                                                    cudnnAlgorithmPerformance[] perfResults,
                                                    CUdeviceptr workspace,
                                                    SizeT workSpaceSizeInBytes,
                                                    CUdeviceptr reserveSpace,
                                                    SizeT reserveSpaceSizeInBytes);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnFindRNNForwardTrainingAlgorithmEx ( cudnnHandle handle , cudnnRNNDescriptor rnnDesc , int seqLength , cudnnTensorDescriptor [ ] xDesc , CUdeviceptr x , cudnnTensorDescriptor hxDesc , CUdeviceptr hx , cudnnTensorDescriptor cxDesc , CUdeviceptr cx , cudnnFilterDescriptor wDesc , CUdeviceptr w , cudnnTensorDescriptor [ ] yDesc , CUdeviceptr y , cudnnTensorDescriptor hyDesc , CUdeviceptr hy , cudnnTensorDescriptor cyDesc , CUdeviceptr cy , float findIntensity , int requestedAlgoCount , ref int returnedAlgoCount , cudnnAlgorithmPerformance [ ] perfResults , CUdeviceptr workspace , SizeT workSpaceSizeInBytes , CUdeviceptr reserveSpace , SizeT reserveSpaceSizeInBytes ) ;
This function attempts all available cuDNN algorithms for cudnnRNNForwardTraining, using user-allocated GPU memory, and outputs performance metrics to a user-allocated array of cudnnAlgorithmPerformance_t.
This function attempts all available cuDNN algorithms for cudnnRNNForwardTraining using user - allocated GPU memory and outputs performance metrics to a user - allocated array of cudnnAlgorithmPerformance_t .
handle
cudnnHandle
rnnDesc
cudnnRNNDescriptor
seqLength
int
xDesc
cudnnTensorDescriptor[]
x
CUdeviceptr
hxDesc
cudnnTensorDescriptor
hx
CUdeviceptr
cxDesc
cudnnTensorDescriptor
cx
CUdeviceptr
wDesc
cudnnFilterDescriptor
w
CUdeviceptr
yDesc
cudnnTensorDescriptor[]
y
CUdeviceptr
hyDesc
cudnnTensorDescriptor
hy
CUdeviceptr
cyDesc
cudnnTensorDescriptor
cy
CUdeviceptr
findIntensity
float
requestedAlgoCount
int
int
ref
perfResults
cudnnAlgorithmPerformance[]
workspace
CUdeviceptr
workSpaceSizeInBytes
SizeT
reserveSpace
CUdeviceptr
reserveSpaceSizeInBytes
SizeT