Skip to content

Test passing a custom policy to DispatchAdjacentDifference, DispatchMergeSort, DispatchScan, DispatchBatchMemcpy - #7289

Merged
bernhardmgruber merged 15 commits into
NVIDIA:mainfrom
bernhardmgruber:custom_dispatch_test
Jan 21, 2026
Merged

bernhardmgruber merged 15 commits into
NVIDIA:mainfrom
bernhardmgruber:custom_dispatch_test

Conversation

@bernhardmgruber

@bernhardmgruber bernhardmgruber commented Jan 19, 2026 •

Copy link
Copy Markdown
Contributor

Generated using Cursor+gpt-5.2-codex, prompt:

Look at commit 186c97c adding a custom policy hub test for DispatchRadixSort.
Implement a similar test for DispatchAdjacentDifference, run the tests, and fix any errors.

And then:

Now do the same for DispatchMergeSort ...

Reviewed on a high level and applied a few fixed.

Like explained in #7288, the tests are not great functional tests, just to ensure that the passed policy hub compiles and the algorithm does not crash.

@github-actions

This comment has been minimized.

Comment on lines +82 to +83
h_in_ptrs[i] = thrust::raw_pointer_cast(in_buffers.back().data());
h_out_ptrs[i] = thrust::raw_pointer_cast(out_buffers.back().data());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes no sense, in_buffer is already a std::vector, so data gives you a pointer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a vector of vectors, which we turn into a vector of pointers.

@bernhardmgruber
bernhardmgruber enabled auto-merge (squash) January 20, 2026 08:37
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 1d 14h: Pass: 100%/52 | Total: 20h 30m | Max: 3h 00m | Hits: 99%/56613

See results here.

@bernhardmgruber
bernhardmgruber merged commit 69976bc into NVIDIA:main Jan 21, 2026
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Jan 21, 2026
@bernhardmgruber
bernhardmgruber deleted the custom_dispatch_test branch January 21, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants