#include <stdio.h>
#include <stdlib.h>
#include <string.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.
This work is described in the following papers:
"GPU Computing" John D. Owens, Mike Houston, David Luebke, Simon Green, John E. Stone, and James C. Phillips. Proceedings of the IEEE, 96:879-899, 2008. http://dx.doi.org/10.1109/JPROC.2008.917757
"Accelerating Molecular Modeling Applications with Graphics Processors" John E. Stone, James C. Phillips, Peter L. Freddolino, David J. Hardy, Leonardo G. Trabuco, and Klaus Schulten. Journal of Computational Chemistry, 28:2618-2640, 2007. http://dx.doi.org/10.1002/jcc.20829
Definition in file CUDAVolCPotential.cu.
Definition at line 126 of file CUDAVolCPotential.cu.
Value:
{ cudaError_t err; \
if ((err = cudaGetLastError()) != cudaSuccess) { \
printf("CUDA error: %s, %s line %d\n", cudaGetErrorString(err), __FILE__, __LINE__); \
printf("Thread aborting...\n"); \
return NULL; }}Definition at line 60 of file CUDAVolCPotential.cu.
Referenced by cudaenergythread.
Definition at line 210 of file CUDAVolCPotential.cu.
Referenced by cudaenergythread, and vmd_cuda_vol_cpotential.
Definition at line 211 of file CUDAVolCPotential.cu.
Referenced by cudaenergythread, and vmd_cuda_vol_cpotential.
Definition at line 73 of file CUDAVolCPotential.cu.
Referenced by copyatomstoconstbuf, and cudaenergythread.
Definition at line 208 of file CUDAVolCPotential.cu.
Definition at line 209 of file CUDAVolCPotential.cu.
[static]
Definition at line 135 of file CUDAVolCPotential.cu.
References atominfo, BLOCKSIZEX, gridspacing, and UNROLLX.
[static]
[static]
Definition at line 298 of file CUDAVolCPotential.cu.
References enthrparms::atoms, atoms, BLOCKSIZEX, BLOCKSIZEY, copyatomstoconstbuf, CUERR, wkf_tasktile_struct::end, GPU_X_ALIGNMASK, GPU_Y_ALIGNMASK, enthrparms::grideners, enthrparms::gridspacing, gridspacing, MAXATOMS, enthrparms::natoms, NULL, enthrparms::numcol, enthrparms::numplane, enthrparms::numpt, wkf_tasktile_struct::start, UNROLLX, UNROLLY, wkf_msg_timer_create, wkf_msg_timer_destroy, wkf_msg_timer_timeout, WKF_SCHED_DONE, wkf_threadlaunch_getdata, wkf_threadlaunch_getid, wkf_threadlaunch_next_tile, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_timenow, and wkf_timerhandle.
Referenced by vmd_cuda_vol_cpotential.
Definition at line 234 of file CUDAVolCPotential.cu.
References enthrparms::atoms, atoms, cudaenergythread, wkf_tasktile_struct::end, FLOPSPERATOMEVAL, GPU_X_ALIGNMASK, GPU_Y_ALIGNMASK, enthrparms::grideners, enthrparms::gridspacing, gridspacing, enthrparms::natoms, enthrparms::numcol, enthrparms::numplane, enthrparms::numpt, wkf_tasktile_struct::start, vmd_cuda_num_devices, wkf_thread_numprocessors, wkf_threadlaunch, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.
Referenced by vol_cpotential.
[static]