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

Modernize scan_by_key functors / type deductions. #1376

Merged

Conversation

alliepiper
Copy link
Collaborator

  1. Use InitialValueType or InputValueIteratorType for value
    accumulation, consistent with P0571 and the regular scans.
  2. Use transparent thrust::equal_to<> and thrust::plus<> specializations
    instead of the explicitly typed functors.
  3. Value-initialize the initial-value type.

This fixes and adds a test for issue #1374.

1) Use `InitialValueType` or `InputValueIteratorType` for value
   accumulation, consistent with P0571 and the regular scans.
2) Use transparent `thrust::equal_to<>` and `thrust::plus<>`
   specializations instead of the explicitly typed functors.
3) Value-initialize the initial-value type.

This fixes and adds a test for issue NVIDIA#1374.
@alliepiper
Copy link
Collaborator Author

run tests

@alliepiper
Copy link
Collaborator Author

DVS CL: 29542409

@alliepiper alliepiper added testing: internal ci in progress Currently testing on internal NVIDIA CI (DVS). testing: gpuCI in progress Started gpuCI testing. labels Jan 25, 2021
@alliepiper alliepiper added this to the 1.12.0 milestone Jan 25, 2021
@alliepiper alliepiper added testing: gpuCI passed Passed gpuCI testing. and removed testing: gpuCI in progress Started gpuCI testing. labels Jan 26, 2021
@alliepiper alliepiper added testing: internal ci passed Passed internal NVIDIA CI (DVS). and removed testing: internal ci in progress Currently testing on internal NVIDIA CI (DVS). labels Jan 26, 2021
@alliepiper
Copy link
Collaborator Author

run tests

@alliepiper alliepiper merged commit 1ef0374 into NVIDIA:main Feb 9, 2021
@alliepiper alliepiper deleted the bug/scan_by_key_modernize/gh.1374 branch February 9, 2021 20:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testing: gpuCI passed Passed gpuCI testing. testing: internal ci passed Passed internal NVIDIA CI (DVS).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inclusive_scan_by_key not accepting discard_iterator as output iterator
3 participants