Started reviewing single-GPU version. Tried to remove determenism, but there is still some.