Skip to content

Commit

Permalink
Convdert any .data() to .begin() iterator based container accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
gonidelis committed Mar 4, 2024
1 parent 95ed2b9 commit b171103
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cub/test/catch2_test_device_segmented_reduce_api.cu
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CUB_TEST("cub::DeviceSegmentedReduce::Reduce works with int data elements", "[se
d_temp_storage,
temp_storage_bytes,
d_in.begin(),
d_out.data(),
d_out.begin(),
num_segments,
d_offsets.begin(),
d_offsets.begin() + 1,
Expand Down Expand Up @@ -126,7 +126,7 @@ CUB_TEST("cub::DeviceSegmentedReduce::Sum works with int data elements", "[segme
d_temp_storage,
temp_storage_bytes,
d_in.begin(),
d_out.data(),
d_out.begin(),
num_segments,
d_offsets.begin(),
d_offsets.begin() + 1);
Expand Down Expand Up @@ -165,7 +165,7 @@ CUB_TEST("cub::DeviceSegmentedReduce::Min works with int data elements", "[segme
d_temp_storage,
temp_storage_bytes,
d_in.begin(),
d_out.data(),
d_out.begin(),
num_segments,
d_offsets.begin(),
d_offsets.begin() + 1);
Expand Down Expand Up @@ -204,7 +204,7 @@ CUB_TEST("cub::DeviceSegmentedReduce::ArgMin works with int data elements", "[se
d_temp_storage,
temp_storage_bytes,
d_in.begin(),
d_out.data(),
d_out.begin(),
num_segments,
d_offsets.begin(),
d_offsets.begin() + 1);
Expand Down Expand Up @@ -243,7 +243,7 @@ CUB_TEST("cub::DeviceSegmentedReduce::Max works with int data elements", "[segme
d_temp_storage,
temp_storage_bytes,
d_in.begin(),
d_out.data(),
d_out.begin(),
num_segments,
d_offsets.begin(),
d_offsets.begin() + 1);
Expand Down Expand Up @@ -282,7 +282,7 @@ CUB_TEST("cub::DeviceSegmentedReduce::ArgMax works with int data elements", "[se
d_temp_storage,
temp_storage_bytes,
d_in.begin(),
d_out.data(),
d_out.begin(),
num_segments,
d_offsets.begin(),
d_offsets.begin() + 1);
Expand Down

0 comments on commit b171103

Please sign in to comment.