Skip to content

Commit

Permalink
Adding AMReX_RESTRICT for GPU Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry992 committed Oct 17, 2022
1 parent 7051a6c commit 4dbfbac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Src/Particle/AMReX_ParticleTile.H
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ struct ParticleTileData

ParticleType* AMREX_RESTRICT m_aos;

GpuArray<ParticleReal* , NAR> m_rdata;
GpuArray<int* , NAI> m_idata;
GpuArray<ParticleReal* AMREX_RESTRICT, NAR> m_rdata;
GpuArray<int* AMREX_RESTRICT, NAI> m_idata;

int m_num_runtime_real;
int m_num_runtime_int;
Expand Down Expand Up @@ -414,8 +414,8 @@ struct ConstParticleTileData
Long m_size;
const ParticleType* AMREX_RESTRICT m_aos;

GpuArray<const ParticleReal* , NArrayReal> m_rdata;
GpuArray<const int* , NArrayInt > m_idata;
GpuArray<const ParticleReal* AMREX_RESTRICT, NArrayReal> m_rdata;
GpuArray<const int* AMREX_RESTRICT, NArrayInt > m_idata;

auto const* rdata(const int attribute_index) const
{
Expand Down

0 comments on commit 4dbfbac

Please sign in to comment.