Skip to content

Commit

Permalink
fixup: unmanaged example print
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Feb 9, 2024
1 parent bb6011d commit 22feee5
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ void unmanagedAoAoAExample()
if ( slice_b( i ) != ( i % VectorLength ) )
{
// Unexpected Value
printf( "%d: Unexpected %d != %d \n", __LINE__, slice_b( i ),
i % VectorLength );
std::cout << "Error: " << slice_b( i ) << " != " << i % VectorLength
<< std::endl;
}
}

Expand All @@ -127,13 +127,14 @@ void unmanagedAoAoAExample()
if ( !( slice_b( i - 1 ) <= slice_b( i ) ) )
{
// Unexpected value
printf( "%d: Unexpected %d vs %d \n", __LINE__, slice_b( i - 1 ),
slice_b( i ) );
std::cout << "Error: " << slice_b( i - 1 ) << " > " << slice_b( i )
<< std::endl;
}

// We can also set values
slice_a( i, 0 ) = i / 2;
}
std::cout << "Successful Cabana binning on unmanaged AoSoA." << std::endl;

// Clean up local data
delete[] local_data;
Expand Down

0 comments on commit 22feee5

Please sign in to comment.