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 }}
Repository navigation
[BUG] CCCL.C output iterator cccl_iterator_t::value_type::size does not match JIT-compiled sizeof(iterator::value_type) #7169
As we can see, it defines a using value_type = void; so when the JIT-compiled kernel asks for the value type's size, it gets a different answer than 4 (sizeof(void) is undefined, but CUB has a type function size_of<void> reporting 0).
This is a problem, because this causes cub::DeviceTransform in #6914 to generate different tuning policies on the host and the device, leading to test failures.
This can be fixed by defining using value_type = VALUE_T;, but output iterators do conventionally have a value_type of void. Trying to extend make_random_access_iterator to accept void as value type but having an iterator state of int seemed tedious.
Ultimately, we need void as value type for output iterators for things like discard iterator. That said, I don't think that we want all the output iterators to have void as value type. The examples in cccl.c tests are mostly transform output iterators. Thrust's transform output iterator does advertices proper value type, so I think we should do the same. I'd prefer to have a dedicated test on cccl.c end that covers discard iterator to check that void output value type is treated properly.
Activity
gevtushenko commentedon Jan 12, 2026
Ultimately, we need void as value type for output iterators for things like discard iterator. That said, I don't think that we want all the output iterators to have void as value type. The examples in cccl.c tests are mostly transform output iterators. Thrust's transform output iterator does advertices proper value type, so I think we should do the same. I'd prefer to have a dedicated test on cccl.c end that covers discard iterator to check that void output value type is treated properly.
griwes commentedon Jan 30, 2026
Should now be resolved by #7399.