MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / cudnnGetConvolutionForwardAlgorithm

Function cudnnGetConvolutionForwardAlgorithm

src/backend/cuda/cudnn.cpp:239–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239cudnnStatus_t cudnnGetConvolutionForwardAlgorithm(
240 cudnnHandle_t handle, const cudnnTensorDescriptor_t xDesc,
241 const cudnnFilterDescriptor_t wDesc,
242 const cudnnConvolutionDescriptor_t convDesc,
243 const cudnnTensorDescriptor_t yDesc,
244 cudnnConvolutionFwdPreference_t preference, size_t memoryLimitInBytes,
245 cudnnConvolutionFwdAlgo_t *algo) {
246 auto version = getCudnnPlugin().getVersion();
247 if (version.major() < 8) {
248 return getCudnnPlugin().cudnnGetConvolutionForwardAlgorithm(
249 handle, xDesc, wDesc, convDesc, yDesc, preference,
250 memoryLimitInBytes, algo);
251 } else {
252 AF_ERROR(
253 "cudnnGetConvolutionForwardAlgorithm has been removed since cuDNN "
254 "8",
255 AF_ERR_NOT_SUPPORTED);
256 return CUDNN_STATUS_SUCCESS;
257 }
258}
259
260cudnnStatus_t cudnnGetConvolutionBackwardFilterAlgorithm(
261 cudnnHandle_t handle, const cudnnTensorDescriptor_t xDesc,

Callers 1

getForwardAlgorithmFunction · 0.85

Calls 2

majorMethod · 0.80
getVersionMethod · 0.45

Tested by

no test coverage detected