Replace all uses of prinft in cuda kernels to rtPrintf. prinft can cause unexpected results (e.g. kernel launch hang)