ndim variable is typecasted to clfftDim. This is required for cython-0.20 compilation