This version work with cudaMat for rr square and get.