Preparation for kernel functions, data structure pi_Tbar_x is now moved to unified memory.