Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

inclusive_scan_by_key not accepting discard_iterator as output iterator #1374

@isVoid

Description

@isVoid

Minimal reproduction code:

void foo(thrust::device_vector<int> v)
{
    auto out = thrust::make_discard_iterator();

    thrust::inclusive_scan(thrust::host, v.begin(), v.end(), out);
}

void bar(thrust::device_vector<int> k, thrust::device_vector<int> v)
{
    auto out = thrust::make_discard_iterator();

    thrust::inclusive_scan_by_key(thrust::host, k.begin(), k.end(), v.begin(), out);
}

Environment: NVCC 10.2.89, Thrust 1.10.0

https://godbolt.org/z/WrvG3z

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions