Please see below code:
thrust::device_vector<int>::iterator whereToBegin = copyListOfNgramCounteachdoc.begin();
end = thrust::unique_by_key(end.first, end.first + numUniqueNgrams,end.second);
thrust::device_vector<int>::iterator end1 = end.first;
thrust::device_vector<int>::iterator iter;
for(iter = whereToBegin; iter!=end1; iter++){
//PRINT VALUE POINTED AT BY ITERATOR
}
The question is really simple. How do i print the value that iter points at.
In your host code:
Just like standard containers.