Skip to content

Commit

Permalink
Align manual AoSoA SIMD blocks to SIMD width
Browse files Browse the repository at this point in the history
Instead of 64.
  • Loading branch information
bernhardmgruber committed Jan 2, 2024
1 parent c91c597 commit c7014f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/nbody/nbody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ namespace manualAoSoAManualAVX
namespace manualAoSoASIMD
{
template<typename Simd>
struct alignas(64) ParticleBlock
struct alignas(sizeof(Simd)) ParticleBlock
{
struct
{
Expand All @@ -1029,7 +1029,6 @@ namespace manualAoSoASIMD
Simd mass;
};


template<typename Simd, typename SimdOrScalar>
inline void pPInteraction(
Simd piposx,
Expand Down

0 comments on commit c7014f3

Please sign in to comment.