Make non-trivial copies from host to device more robust.
Make non-trivial copies from host to device more robust.

bfurtaw/thrust,julianromera/thrust,google-code-export/thrust,allendaicool/thrust,allendaicool/thrust,lishi0927/thrust,julianromera/thrust,UIKit0/thrust,Vishwa07/thrust,google-code-export/thrust,bfurtaw/thrust,malenie/thrust,hemmingway/thrust,Vishwa07/thrust,hemmingway/thrust,julianromera/thrust,google-code-export/thrust,h1arshad/thrust,UIKit0/thrust,levendlee/thrust,malenie/thrust,rdmenezes/thrust,lishi0927/thrust,bfurtaw/thrust,levendlee/thrust,rdmenezes/thrust,malenie/thrust,allendaicool/thrust,malenie/thrust,h1arshad/thrust,Vishwa07/thrust,UIKit0/thrust,levendlee/thrust,google-code-export/thrust,rdmenezes/thrust,lishi0927/thrust,levendlee/thrust,bfurtaw/thrust,hemmingway/thrust,Vishwa07/thrust,julianromera/thrust,lishi0927/thrust,h1arshad/thrust,h1arshad/thrust,rdmenezes/thrust,hemmingway/thrust,UIKit0/thrust,allendaicool/thrust