Cuda memcheck returned 128 errors. However on disabling cudnn backend no error is encountered.
It encountered an out of bounds error for some reason.
========= CUDA-MEMCHECK
========= Invalid __global__ write of size 8
=========     at 0x00003710 in void fft3d_r2c_16x16x16<float, float, float2>(float2*, float*, int3, int3, int3, int3, int3, bool)
=========     by thread (15,11,0) in block (235077,0,0)
=========     Address 0x7fbd57036df8 is out of bounds
=========     Saved host backtrace up to driver entry point at kernel launch time
=========     Host Frame:/usr/lib/x86_64-linux-gnu/libcuda.so.1 (cuLaunchKernel + 0x2cd) [0x22b12d]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 [0xcea0eb]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 [0xd0733e]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 [0x9e4393]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 [0x9e5968]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 [0x9c7233]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 [0x72fa85]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 [0x74a01]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/lib/libcudnn-7a90c013.so.7.0.5 (cudnnConvolutionBackwardData + 0x46c) [0x74eec]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so (_ZN5torch5cudnn31cudnn_convolution_backward_dataEP8THCStateP12cudnnContext15cudnnDataType_tPNS_12THVoidTensorES7_S7_PNS0_11ConvolutionEbb + 0x80e) [0x11ad11e]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so (_ZN5torch5cudnn40cudnn_convolution_transpose_full_forwardEP8THCStateP12cudnnContext15cudnnDataType_tPNS_12THVoidTensorES7_S7_S7_St6vectorIiSaIiEESA_SA_ibb + 0x321) [0x11b19c1]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so (_ZN5torch8autograd11ConvForward5applyERKSt6vectorINS0_8VariableESaIS3_EE + 0x1039) [0x522619]
=========     Host Frame:/home/thor/vp36sys/lib/python3.6/site-packages/torch/_C.cpython-36m-x86_64-linux-gnu.so [0x410cde]
=========     Host Frame:python (_PyObject_FastCallKeywords + 0x10b) [0xe2a2b]
=========     Host Frame:python [0x178b75]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x3da) [0x17130a]
=========     Host Frame:python [0x17047f]
=========     Host Frame:python [0x179abb]
=========     Host Frame:python [0x178acc]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x3da) [0x17130a]
=========     Host Frame:python [0x17047f]
=========     Host Frame:python (_PyFunction_FastCallDict + 0x440) [0x17a6f0]
=========     Host Frame:python (_PyObject_Call_Prepend + 0x24c) [0xe383c]
=========     Host Frame:python (PyObject_Call + 0x3a) [0xe2f0a]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x1ab5) [0x1729e5]
=========     Host Frame:python [0x17047f]
=========     Host Frame:python (_PyFunction_FastCallDict + 0x1da) [0x17a48a]
=========     Host Frame:python (_PyObject_Call_Prepend + 0x24c) [0xe383c]
=========     Host Frame:python (PyObject_Call + 0x3a) [0xe2f0a]
=========     Host Frame:python [0x1333ee]
=========     Host Frame:python (_PyObject_FastCallKeywords + 0x10b) [0xe2a2b]
=========     Host Frame:python [0x178b75]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x3da) [0x17130a]
=========     Host Frame:python (_PyFunction_FastCallDict + 0x133) [0x17a3e3]
=========     Host Frame:python (_PyObject_Call_Prepend + 0x24c) [0xe383c]
=========     Host Frame:python (PyObject_Call + 0x3a) [0xe2f0a]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x1ab5) [0x1729e5]
=========     Host Frame:python [0x17047f]
=========     Host Frame:python (_PyFunction_FastCallDict + 0x1da) [0x17a48a]
=========     Host Frame:python (_PyObject_Call_Prepend + 0x24c) [0xe383c]
=========     Host Frame:python (PyObject_Call + 0x3a) [0xe2f0a]
=========     Host Frame:python [0x1333ee]
=========     Host Frame:python (_PyObject_FastCallKeywords + 0x10b) [0xe2a2b]
=========     Host Frame:python [0x178b75]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x3da) [0x17130a]
=========     Host Frame:python [0x1799fd]
=========     Host Frame:python [0x178acc]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x3da) [0x17130a]
=========     Host Frame:python [0x1799fd]
=========     Host Frame:python [0x178acc]
=========     Host Frame:python (_PyEval_EvalFrameDefault + 0x3da) [0x17130a]
=========