I'm new to using Thrust and there is one thing I don't understand. Is Thrust asynchronous or synchronous?
If I write the following code, the time taken isn't 0. But in the other tags, other users report a result of 0. What is the truth?
clock_t start,end;
start=clock(); 
thrust::sort_by_key(vettore.begin(), vettore.end(), counter.begin()); 
end=clock();
double time=((double)(end-start))/CLOCKS_PER_SEC; 
cout<<"execution time"<<time<<endl;// the result is 0.327