generate only needed transpose kernels