ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
GpuParticleData_cuda.cu File Reference

CUDA kernels to convert the particles AoS to a SoA on the device. More...

#include <config/config.hpp>
#include "GpuParticleData.hpp"
#include "System.hpp"
#include "ParticleRange.hpp"
#include "errorhandling.hpp"
#include "cuda/init.hpp"
#include "cuda/utils.cuh"
#include <thrust/copy.h>
#include <thrust/device_vector.h>
#include <cuda.h>
#include <cstddef>
#include <cstdio>
#include <memory>
#include <span>
Include dependency graph for GpuParticleData_cuda.cu:

Go to the source code of this file.

Classes

class  GpuParticleData::Storage
 Host and device containers for particle data. More...

Functions

template<class T>
T * raw_data_pointer (thrust::device_vector< T > &vec)
template<class SpanLike>
std::size_t byte_size (SpanLike const &v)
template<typename T>
void free_device_vector (thrust::device_vector< T > &vec)
__global__ void split_kernel_r (GpuParticleData::GpuParticle *particles, float *r, std::size_t n)
__global__ void split_kernel_rq (GpuParticleData::GpuParticle *particles, float *r, float *q, std::size_t n)
__global__ void split_kernel_q (GpuParticleData::GpuParticle *particles, float *q, std::size_t n)
__global__ void split_kernel_dip (GpuParticleData::GpuParticle *particles, float *dip, std::size_t n)

Detailed Description

CUDA kernels to convert the particles AoS to a SoA on the device.

Definition in file GpuParticleData_cuda.cu.

Function Documentation

◆ byte_size()

template<class SpanLike>
std::size_t byte_size ( SpanLike const & v)

◆ free_device_vector()

template<typename T>
void free_device_vector ( thrust::device_vector< T > & vec)

Definition at line 57 of file GpuParticleData_cuda.cu.

◆ raw_data_pointer()

◆ split_kernel_dip()

__global__ void split_kernel_dip ( GpuParticleData::GpuParticle * particles,
float * dip,
std::size_t n )

◆ split_kernel_q()

__global__ void split_kernel_q ( GpuParticleData::GpuParticle * particles,
float * q,
std::size_t n )

◆ split_kernel_r()

__global__ void split_kernel_r ( GpuParticleData::GpuParticle * particles,
float * r,
std::size_t n )

◆ split_kernel_rq()

__global__ void split_kernel_rq ( GpuParticleData::GpuParticle * particles,
float * r,
float * q,
std::size_t n )