ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
GpuParticleData::Storage Class Reference

Host and device containers for particle data. More...

Collaboration diagram for GpuParticleData::Storage:

Public Member Functions

 ~Storage ()
void realloc_device_memory ()
void split_particle_struct ()
void copy_particles_to_device ()
void copy_particle_forces_to_host ()
void copy_particle_dip_fld_to_host ()
void copy_particle_torques_to_host ()
std::span< float > get_particle_forces_host_span ()
std::span< float > get_particle_dip_fld_host_span ()
std::span< float > get_particle_torques_host_span ()

Public Attributes

GpuParticleData::prop::bitset m_need
 Which particle properties are needed by GPU methods.
GpuParticleData::GpuEnergy * energy_device = nullptr
std::size_t current_size = 0ul
pinned_vector< GpuParticle > particle_data_host
thrust::device_vector< GpuParticle > particle_data_device
pinned_vector< float > particle_forces_host
thrust::device_vector< float > particle_forces_device
pinned_vector< float > particle_dip_fld_host
thrust::device_vector< float > particle_dip_fld_device
pinned_vector< float > particle_torques_host
thrust::device_vector< float > particle_torques_device
float * particle_pos_device = nullptr
float * particle_dip_device = nullptr
float * particle_q_device = nullptr

Detailed Description

Host and device containers for particle data.

Definition at line 63 of file GpuParticleData_cuda.cu.

Constructor & Destructor Documentation

◆ ~Storage()

GpuParticleData::Storage::~Storage ( )

Member Function Documentation

◆ copy_particle_dip_fld_to_host()

void GpuParticleData::Storage::copy_particle_dip_fld_to_host ( )
inline

Definition at line 101 of file GpuParticleData_cuda.cu.

References particle_dip_fld_device, and particle_dip_fld_host.

◆ copy_particle_forces_to_host()

void GpuParticleData::Storage::copy_particle_forces_to_host ( )
inline

Definition at line 93 of file GpuParticleData_cuda.cu.

References particle_forces_device, and particle_forces_host.

◆ copy_particle_torques_to_host()

void GpuParticleData::Storage::copy_particle_torques_to_host ( )
inline

Definition at line 111 of file GpuParticleData_cuda.cu.

References particle_torques_device, and particle_torques_host.

◆ copy_particles_to_device()

◆ get_particle_dip_fld_host_span()

std::span< float > GpuParticleData::Storage::get_particle_dip_fld_host_span ( )
inline

Definition at line 124 of file GpuParticleData_cuda.cu.

References particle_dip_fld_host.

◆ get_particle_forces_host_span()

std::span< float > GpuParticleData::Storage::get_particle_forces_host_span ( )
inline

Definition at line 119 of file GpuParticleData_cuda.cu.

References particle_forces_host.

◆ get_particle_torques_host_span()

std::span< float > GpuParticleData::Storage::get_particle_torques_host_span ( )
inline

Definition at line 130 of file GpuParticleData_cuda.cu.

References particle_torques_host.

◆ realloc_device_memory()

◆ split_particle_struct()

Member Data Documentation

◆ current_size

std::size_t GpuParticleData::Storage::current_size = 0ul

Definition at line 68 of file GpuParticleData_cuda.cu.

Referenced by realloc_device_memory().

◆ energy_device

GpuParticleData::GpuEnergy* GpuParticleData::Storage::energy_device = nullptr

Definition at line 67 of file GpuParticleData_cuda.cu.

Referenced by ~Storage().

◆ m_need

GpuParticleData::prop::bitset GpuParticleData::Storage::m_need

Which particle properties are needed by GPU methods.

Definition at line 66 of file GpuParticleData_cuda.cu.

Referenced by realloc_device_memory(), and split_particle_struct().

◆ particle_data_device

thrust::device_vector<GpuParticle> GpuParticleData::Storage::particle_data_device

◆ particle_data_host

pinned_vector<GpuParticle> GpuParticleData::Storage::particle_data_host

Definition at line 69 of file GpuParticleData_cuda.cu.

Referenced by copy_particles_to_device().

◆ particle_dip_device

float* GpuParticleData::Storage::particle_dip_device = nullptr

Definition at line 83 of file GpuParticleData_cuda.cu.

Referenced by realloc_device_memory(), split_particle_struct(), and ~Storage().

◆ particle_dip_fld_device

thrust::device_vector<float> GpuParticleData::Storage::particle_dip_fld_device

◆ particle_dip_fld_host

pinned_vector<float> GpuParticleData::Storage::particle_dip_fld_host

◆ particle_forces_device

thrust::device_vector<float> GpuParticleData::Storage::particle_forces_device

◆ particle_forces_host

pinned_vector<float> GpuParticleData::Storage::particle_forces_host

◆ particle_pos_device

float* GpuParticleData::Storage::particle_pos_device = nullptr

Definition at line 81 of file GpuParticleData_cuda.cu.

Referenced by realloc_device_memory(), split_particle_struct(), and ~Storage().

◆ particle_q_device

float* GpuParticleData::Storage::particle_q_device = nullptr

Definition at line 86 of file GpuParticleData_cuda.cu.

Referenced by realloc_device_memory(), split_particle_struct(), and ~Storage().

◆ particle_torques_device

thrust::device_vector<float> GpuParticleData::Storage::particle_torques_device

◆ particle_torques_host

pinned_vector<float> GpuParticleData::Storage::particle_torques_host

The documentation for this class was generated from the following file: