Skip to content

Commit

Permalink
fixup: use binning for now in unmanaged memory ex
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Feb 9, 2024
1 parent b751e06 commit bb6011d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ void unmanagedAoAoAExample()
}

/*
* Use the view in an algorithm, like sort
* Use the view in an algorithm, like binning
*/
auto binning_data = Cabana::sortByKey( slice_b );
auto binning_data = Cabana::binByKey( slice_b, 64 );
Cabana::permute( binning_data, aosoa );

// Check it worked
for ( int i = 1; i < num_tuple; i++ )
for ( int i = 1; i < num_tuple; i += 2 )
{
// We expect it to be monotonically increasing
if ( !( slice_b( i - 1 ) <= slice_b( i ) ) )
Expand Down

0 comments on commit bb6011d

Please sign in to comment.