How to get the convolution algorithm chosen by CUDNN autotune in pytorch and how to manually define it later?
- Is it possible to interact with CUDNN API from inside Pytorch. Following CUDNN function returns the type of algorithm to be used defined by
CUDNN_CONVOLUTION_FWD_PREFER_FASTEST
:
cudnnGetConvolutionForwardAlgorithm(cudnn,
input_descriptor,
kernel_descriptor,
convolution_descriptor,
output_descriptor,
CUDNN_CONVOLUTION_FWD_PREFER_FASTEST,
/*memoryLimitInBytes=*/0,
&convolution_algorithm)
- Is it possible to use CUDNN logs somehow?
- Is it possible to do it via pytroch C++ API?