You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
template <typename T>
struct compute_sequence_value
{
T init;
T step;
__thrust_exec_check_disable__
__host__ __device__
T operator()(std::size_t i) const
{
return init + step * static_cast<T>(i);
}
};
}
the static_cast<T>(i) will cause the algorithm to fail to compile in cases where step * i would otherwise work just fine (in my case T is float3)
Is this an intended limitation of sequence()? It would make more sense to me to use step * i if that was valid, falling back to trying the static_cast only if that would fail.