fixed aMD on GPU