Skip to content

[FEA]: Improve NVHPC smoke tests #6486

Open

Description

@miscco

Is this a duplicate?

Area

libcu++

Is your feature request related to a problem? Please describe.

NVHPC relies on our implementation for their stdpar backend.

We have one smoke test in https://github.com/NVIDIA/cccl/tree/main/test that serves as the sole backstop before we are breaking their internal CI

We want to improve the coverage spanning more algorithms. Note that compiling the tests is sufficient for now.

Describe the solution you'd like

Implement more small test cases that verify that we do not break NVHPC

  • adjacent_difference
  • exclusive_scan
  • inclusive_scan
  • transform_exclusive_scan
  • transform_inclusive_scan
  • transform_reduce
  • all_of
  • any_of
  • count
  • copy
  • copy_if
  • copy_n
  • count_if
  • equal
  • fill
  • fill_n
  • find
  • find_if
  • find_if_not
  • for_each
  • for_each_n
  • generate
  • generate_n
  • is_partitioned
  • is_sorted
  • is_sorted_until
  • max_element
  • min_element
  • minmax_element
  • merge
  • mismatch
  • none_of
  • partition
  • partition_copy
  • remove
  • remove_copy
  • remove_copy_if
  • remove_if
  • replace
  • replace_copy
  • replace_copy_if
  • replace_if
  • reverse
  • reverse_copy
  • rotate_copy
  • set_difference
  • set_intersection
  • set_symmetric_difference
  • set_union
  • sort
  • stable_partition
  • stable_sort
  • swap_ranges
  • transform
  • unique
  • unique_copy

Describe alternatives you've considered

No response

Additional context

The reduce test lives here

We should take this test as a sample and expand it to more accelerated algorithms

Activity

  1. added
    good first issue
    on Nov 4, 2025
  2. zkhatami commented on Nov 10, 2025

    @zkhatami

    These are the stdpar algorithms that are implemented directly through corresponding Thrust algorithms and can serve as an initial list of algorithms for the smoke tests:

    adjacent_difference, exclusive_scan, inclusive_scan, transform_exclusive_scan, transform_inclusive_scan, transform_reduce, all_of, 
    any_of, count, copy, copy_if, copy_n, count_if, equal, fill, fill_n, find, find_if, find_if_not, for_each, for_each_n, generate, generate_n, 
    is_partitioned, is_sorted, is_sorted_until, max_element, min_element, minmax_element, merge, mismatch, none_of, partition, 
    partition_copy, remove, remove_copy, remove_copy_if, remove_if, replace, replace_copy, replace_copy_if, replace_if, reverse, 
    reverse_copy, rotate_copy, set_difference, set_intersection, set_symmetric_difference, set_union, sort, stable_partition, stable_sort, 
    swap_ranges, transform, unique, unique_copy
    

    Some of the other parallel stdpar algorithms are implemented in terms of the algorithms listed above, so I haven't included them separately because this list already covers them.
    I can also help with writing smoke tests for each of these algorithms.

  3. viralbhadeshiya commented on Nov 15, 2025

    @viralbhadeshiya
    Contributor

    @miscco I like to work on this if possible.

  4. miscco commented on Nov 17, 2025

    @miscco
    ContributorAuthor

    @viralbhadeshiya that would be great.

    I would suggest to pick one algorithm at a time and look at the existing reduce test as well as the documentation of that algorithm. We want to test all overloads that take an execution policy.

  5. viralbhadeshiya commented on Dec 1, 2025

    @viralbhadeshiya
    Contributor

    @miscco can you assign this to me, so I can keep track easily.

  6. miscco commented on Dec 1, 2025

    @miscco
    ContributorAuthor

    I would prefer to have a PR per algorithm, I dont think there is any immediate danger of conflicts there

  7. viralbhadeshiya commented on Dec 1, 2025

    @viralbhadeshiya
    Contributor

    I would prefer to have a PR per algorithm, I dont think there is any immediate danger of conflicts there

    Okay make sense, will do that.

  8. moved this from Todo to In Review in CCCLon Dec 3, 2025
  9. adv-andrew commented on Aug 19, 2026

    @adv-andrew
    Contributor

    Hi, I’m working on the copy_if NVHPC stdpar smoke test as part of #6486. I’ll cover the execution-policy overload following the existing tests under test/stdpar/tests. in #10907

  10. added
    help wanted
    on Aug 20, 2026
  11. iamAbhi-916 commented on Oct 3, 2026

    @iamAbhi-916
    Contributor

    @miscco

    Added smoke test for std::none_of smoke test using std::execution::par, can you please review: #11836

  12. 100lalitahegde-eng commented on Nov 23, 2026

    @100lalitahegde-eng

    I'd like to add the fill_n NVHPC stdpar smoke test from this issue.

    fill is already covered in test/stdpar/tests/fill.cpp, and new tests are picked up automatically by the glob in test/stdpar/CMakeLists.txt. I'd add test/stdpar/tests/fill_n.cpp in the same style: version asserts, std::execution::par, a 1 << 16 range, plus the empty-count case. I'll cover the execution-policy overload of std::fill_n, as requested earlier on this issue.

    Is it okay if I take this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Projects

    • Status
      In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions