Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Aug 26, 2024
1 parent 73c60d1 commit 242633f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cub/test/catch2_test_device_transform.cu
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ CUB_TEST("DeviceTransform::Transform fancy output iterator type", "[device][devi
c2h::device_vector<type> result(num_items);

using thrust::placeholders::_1;
auto out = thrust::make_transform_output_iterator(result.begin(), _1 * 2);
auto out = thrust::make_transform_output_iterator(result.begin(), _1 + 4);
transform_many_with_alg<alg, offset_t>(
::cuda::std::make_tuple(a.begin(), b.end()), out, num_items, ::cuda::std::plus<type>{});
REQUIRE(result == c2h::device_vector<type>(num_items, (13 + 35) * 2));
::cuda::std::make_tuple(a.begin(), b.begin()), out, num_items, ::cuda::std::plus<type>{});
REQUIRE(result == c2h::device_vector<type>(num_items, (13 + 35) + 4));
}

CUB_TEST("DeviceTransform::Transform mixed input iterator types", "[device][device_transform]")
Expand Down

0 comments on commit 242633f

Please sign in to comment.