CellGPU  0.8.0
GPU-accelerated simulations of cells
Functions
cellListGPU Kernels

CUDA kernels and callers for the cellListGPU class. More...

Functions

bool gpu_compute_cell_list (Dscalar2 *d_pt, unsigned int *d_cell_sizes, int *d_idx, int Np, int &Nmax, int xsize, int ysize, Dscalar boxsize, gpubox &Box, Index2D &ci, Index2D &cli, int *d_assist)
 Find the set indices of points in every cell bucket in the grid.
 
bool gpu_zero_array (int *arr, int N)
 convenience function to zero out an array on the GPU
 
bool gpu_zero_array (unsigned int *arr, int N)
 convenience function to zero out an array on the GPU
 
__global__ void gpu_compute_cell_list_kernel (Dscalar2 *d_pt, unsigned int *d_cell_sizes, int *d_idx, int Np, unsigned int Nmax, int xsize, int ysize, Dscalar boxsize, gpubox Box, Index2D ci, Index2D cli, int *d_assist)
 
__global__ void gpu_zero_array_kernel (unsigned int *arr, int N)
 
__global__ void gpu_zero_array_kernel (int *arr, int N)
 

Detailed Description

CUDA kernels and callers for the cellListGPU class.

Function Documentation

◆ gpu_compute_cell_list_kernel()

__global__ void gpu_compute_cell_list_kernel ( Dscalar2 *  d_pt,
unsigned int *  d_cell_sizes,
int *  d_idx,
int  Np,
unsigned int  Nmax,
int  xsize,
int  ysize,
Dscalar  boxsize,
gpubox  Box,
Index2D  ci,
Index2D  cli,
int *  d_assist 
)

Assign particles to bins, keep track of the number of particles per bin, etc.

◆ gpu_zero_array_kernel() [1/2]

__global__ void gpu_zero_array_kernel ( unsigned int *  arr,
int  N 
)

A function of convenience...zero out an array on the device

◆ gpu_zero_array_kernel() [2/2]

__global__ void gpu_zero_array_kernel ( int *  arr,
int  N 
)

A function of convenience...zero out an array on the device