iota was the only algorithm without a user function that had no task
size. An iteration assigns an element and increments the value: about a
nanosecond if the value is a builtin type, so iota is sized like fill
by its elements; for other value types the size is unknown.
The task_sizes_no_function test checks iota with int values (medium,
and small with par_unseq when a lane holds more than one int) and with
a value type that isn't builtin (unknown).
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
#7968 sized the algorithms that don't call a user function, but missed iota. This adds it: an iteration of iota assigns an element and increments the value, which takes about a nanosecond when the value is a builtin type, so iota now gets the same size per element as fill (element_operation_size of the iterator). For other value types the size stays unknown.
task_sizes_no_function checks iota with int values (medium with par, small with par_unseq if a lane holds more than one int) and with a value type that isn't builtin but adds a distance and converts to int (unknown).
This touches the same function in iota.hpp as #8192, but the two apply independently of each other.