I am using thrust to find the sum of an array ,c, but I keep getting compiler error “error: expresion must have class type”
float tot = thrust::reduce(c.begin(), c.end());
This is the code line that isn’t working, c is a float array and is the element sum of 2 other arrays.
Cheers
c should be a
thrusttype, such asthrust::host_vectororthrust::device_vector.