Bug fixed: in opt rank-k kernel, the loop must be separated
into two cases, since there are preload schemes inside.