improve D-matrix of PP on gpu