Implement device generate with device for_each.
Implement device generate with device for_each.

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