I am trying to achieve something similar to this post
for (int i=0; i < n; ++i){
// some operation
// some computation results in cost and route.
if(cost < minCost) {
minCost = cost;
minRoute = route;
}
}
I assume if we have user-defined reduction we can achieve the above. Do we have it in nvc++ 22.7?
I remember seeing it in one of David Olsen’s GTC Talk GTC S9770 page 24. Can you give me or point me to a small example where I can play+understand the same?
Thanks.