Skip to content

[CUB] Refactor DeviceAdjacentDifference::SubtractRight to always take an environment#9419

Open
miscco wants to merge 1 commit into
device_adjacent_difference_subtract_left_envfrom
device_adjacent_difference_subtract_right_env
Open

[CUB] Refactor DeviceAdjacentDifference::SubtractRight to always take an environment#9419
miscco wants to merge 1 commit into
device_adjacent_difference_subtract_left_envfrom
device_adjacent_difference_subtract_right_env

Conversation

@miscco

@miscco miscco commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Description

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jun 12, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Jun 12, 2026
@miscco miscco marked this pull request as ready for review June 12, 2026 11:03
@miscco miscco requested a review from a team as a code owner June 12, 2026 11:03
@miscco miscco requested a review from elstehle June 12, 2026 11:03
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Jun 12, 2026
@miscco miscco force-pushed the device_adjacent_difference_subtract_right_env branch from 18e8403 to 8cfab18 Compare June 12, 2026 11:21
@miscco miscco force-pushed the device_adjacent_difference_subtract_left_env branch from ba420ef to 3c91b42 Compare June 12, 2026 11:21
@miscco miscco force-pushed the device_adjacent_difference_subtract_right_env branch from 8cfab18 to c000627 Compare June 12, 2026 11:21
@copy-pr-bot

copy-pr-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.


c2h::host_vector<type> h_in = in;
c2h::host_vector<type> reference(num_items);
std::adjacent_difference(h_in.begin(), h_in.end(), reference.begin(), ref_diff<type>{});

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.

std::????

Comment on lines +112 to +114
auto error = cub::DeviceAdjacentDifference::SubtractRight(
static_cast<void*>(nullptr), expected_allocation_size, in.begin(), num_items, cuda::std::minus<>{});
REQUIRE(error == cudaSuccess);

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.

REQUIRE_CUB()?

Comment on lines +115 to +116
REQUIRE(cudaSuccess == cudaPeekAtLastError());
REQUIRE(cudaSuccess == cudaDeviceSynchronize());

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.

REQUIRE_CUDART()

@miscco miscco force-pushed the device_adjacent_difference_subtract_right_env branch from c000627 to 9ade375 Compare June 12, 2026 12:03
@miscco miscco force-pushed the device_adjacent_difference_subtract_left_env branch 2 times, most recently from 3c91b42 to 9004022 Compare June 12, 2026 12:04
@miscco miscco force-pushed the device_adjacent_difference_subtract_right_env branch from 9ade375 to 0dcfcac Compare June 12, 2026 12:04
@github-actions

This comment has been minimized.

…ke an environment

We want to be able to pass tunings to the APIs that take user provided memory.
@miscco miscco force-pushed the device_adjacent_difference_subtract_right_env branch from 0dcfcac to 657a73c Compare June 12, 2026 15:30
@miscco miscco force-pushed the device_adjacent_difference_subtract_left_env branch from 9004022 to 30ac019 Compare June 12, 2026 15:30
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 54m: Pass: 100%/287 | Total: 11d 21h | Max: 2h 53m | Hits: 19%/1355601

See results here.

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

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants