Don't generate new reduction kernel for nothing.
Allow to precompile the reduction kernel for some ndim.