CellGPU
0.8.0
GPU-accelerated simulations of cells
|
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) |
CUDA kernels and callers for the cellListGPU class.
__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.
__global__ void gpu_zero_array_kernel | ( | unsigned int * | arr, |
int | N | ||
) |
A function of convenience...zero out an array on the device
__global__ void gpu_zero_array_kernel | ( | int * | arr, |
int | N | ||
) |
A function of convenience...zero out an array on the device