Added changes for many function in AMP as device_vector changed