#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <cuda.h>
#include "Inform.h"
#include "utilities.h"
#include "WKFThreads.h"
#include "WKFUtils.h"
#include "CUDAKernels.h"
Go to the source code of this file.
Compounds | |
struct | rdfthrparms |
Defines | |
#define | NBLOCK 32 |
#define | MAXBIN 1024 |
#define | NCUDABLOCKS 256 |
#define | NBLOCKHIST 64 |
#define | NCONSTBLOCK 5440 |
#define | THREADSPERWARP 32 |
#define | WARP_LOG_SIZE 5 |
#define | BIN_OVERFLOW_LIMIT 2147483648 |
#define | ull2float __uint2float_rn |
Functions | |
__global__ void | init_hist (unsigned int *llhistg, int maxbin) |
__global__ void | init_hist_f (float *histdev) |
__global__ void | reimage_xyz (float *xyz, int natomsi, int natomsipad, float3 celld, float rmax) |
__global__ void | phantom_xyz (float *xyz, int natomsi, int natomsipad, float minxyz, float rmax) |
void | copycoordstoconstbuff (int natoms, const float *xyzh) |
__device__ void | addData (volatile unsigned int *s_WarpHist, unsigned int data, unsigned int threadTag) |
__global__ void | calculate_rdf (int usepbc, float *xyz, int natomsi, int natomsj, float3 celld, unsigned int *llhistg, int nbins, float rmin, float delr_inv) |
__global__ void | calculate_histogram (float *histdev, unsigned int *llhistg, int nbins) |
void | calculate_histogram_block (int usepbc, float *xyz, int natomsi, int natomsj, float3 celld, unsigned int *llhistg, int nbins, float rmin, float delr_inv, float *histdev, int nblockhist) |
void * | rdf_thread (void *voidparms) |
int | rdf_gpu (wkf_threadpool_t *devpool, int usepbc, int natoms1, float *xyz, int natoms2, float *xyz2, float *cell, float *hist, int nbins, float rmin, float delr) |
Variables | |
__constant__ float | xyzj [3 *NCONSTBLOCK] |
This work is described in the following paper:
"Fast Analysis of Molecular Dynamics Trajectories with Graphics Processing Units - Radial Distribution Function Histogramming" Benjamin G. Levine, John E. Stone, and Axel Kohlmeyer. Journal of Computational Physics, 230(9):3556-3569, 2011. http://dx.doi.org/10.1016/j.jcp.2011.01.048
Definition in file CUDAMeasureRDF.cu.
|
Definition at line 87 of file CUDAMeasureRDF.cu. Referenced by rdf_thread. |
|
Definition at line 55 of file CUDAMeasureRDF.cu. Referenced by calculate_histogram, calculate_histogram_block, calculate_rdf, rdf_gpu, and rdf_thread. |
|
Definition at line 54 of file CUDAMeasureRDF.cu. Referenced by calculate_histogram, calculate_rdf, init_hist, phantom_xyz, rdf_gpu, rdf_thread, and reimage_xyz. |
|
Definition at line 77 of file CUDAMeasureRDF.cu. Referenced by calculate_histogram, and rdf_gpu. |
|
Definition at line 81 of file CUDAMeasureRDF.cu. Referenced by rdf_gpu, and rdf_thread. |
|
Definition at line 72 of file CUDAMeasureRDF.cu. Referenced by calculate_histogram, calculate_rdf, phantom_xyz, rdf_thread, and reimage_xyz. |
|
Definition at line 84 of file CUDAMeasureRDF.cu. Referenced by calculate_histogram, calculate_rdf, init_hist, and rdf_thread. |
|
Definition at line 578 of file CUDAMeasureRDF.cu. Referenced by calculate_histogram. |
|
Definition at line 85 of file CUDAMeasureRDF.cu. Referenced by calculate_rdf. |
|
Definition at line 348 of file CUDAMeasureRDF.cu. References data. Referenced by calculate_rdf. |
|
Definition at line 585 of file CUDAMeasureRDF.cu. References MAXBIN, NBLOCK, NBLOCKHIST, NCUDABLOCKS, THREADSPERWARP, and ull2float. |
|
Definition at line 661 of file CUDAMeasureRDF.cu. References MAXBIN. Referenced by rdf_thread. |
|
Definition at line 367 of file CUDAMeasureRDF.cu. References addData, MAXBIN, NBLOCK, NCUDABLOCKS, THREADSPERWARP, WARP_LOG_SIZE, and xyzj. |
|
Definition at line 335 of file CUDAMeasureRDF.cu. References xyzj. Referenced by rdf_thread. |
|
Definition at line 93 of file CUDAMeasureRDF.cu. References NBLOCK, and THREADSPERWARP. |
|
Definition at line 154 of file CUDAMeasureRDF.cu. |
|
Definition at line 252 of file CUDAMeasureRDF.cu. References NBLOCK, and NCUDABLOCKS. |
|
|
|
Definition at line 166 of file CUDAMeasureRDF.cu. References NBLOCK, and NCUDABLOCKS. |
|
Definition at line 331 of file CUDAMeasureRDF.cu. Referenced by calculate_rdf, and copycoordstoconstbuff. |