Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

CUDAKernels.h File Reference

#include "WKFThreads.h"

Go to the source code of this file.

Defines

#define VMDCUDA_ERR_NONE   0
#define VMDCUDA_ERR_GENERAL   -1
#define VMDCUDA_ERR_NODEVICES   -2
#define VMDCUDA_ERR_SOMEDEVICES   -3
#define VMDCUDA_ERR_DRVMISMATCH   -4
#define VMDCUDA_ERR_EMUDEVICE   -5
#define VMDCUDA_COMPUTEMODE_DEFAULT   0
#define VMDCUDA_COMPUTEMODE_EXCLUSIVE   1
#define VMDCUDA_COMPUTEMODE_PROHIBITED   2

Functions

int vmd_cuda_num_devices (int *numdev)
int vmd_cuda_device_props (int dev, char *name, int namelen, int *revmajor, int *revminor, unsigned long *memb, int *clockratekhz, int *smcount, int *overlap, int *kerneltimeout, int *canmaphostmem, int *computemode)
void * vmd_cuda_devpool_setdevice (void *voidparms)
void * vmd_cuda_devpool_clear_device_mem (void *)
int vmd_cuda_madd_gflops (int numdevs, int *devlist, double *gflops, int testloops)
int vmd_cuda_bus_bw (int numdevs, int *devlist, double *hdmbsec, double *hdlatusec, double *phdmbsec, double *phdlatusec, double *dhmbsec, double *dhlatusec, double *pdhmbsec, double *pdhlatusec)
int vmd_cuda_globmem_bw (int numdevs, int *devlist, double *memsetgbsec, double *memcpygbsec)
int vmd_cuda_devpool_latency (wkf_threadpool_t *devpool, int tilesize, double *kernlaunchlatency, double *barlatency, double *cyclelatency, double *tilelatency, double *kernellatency)
int vmd_cuda_vol_cpotential (long int natoms, float *atoms, float *grideners, long int numplane, long int numcol, long int numpt, float gridspacing)
int vmd_cuda_evaluate_orbital_grid (wkf_threadpool_t *devpool, int numatoms, const float *wave_f, int num_wave_f, const float *basis_array, int num_basis, const float *atompos, const int *atom_basis, const int *num_shells_per_atom, const int *num_prim_per_shell, const int *shell_types, int num_shells, const int *numvoxels, float voxelsize, const float *origin, float *orbitalgrid)
int vmd_cuda_evaluate_occupancy_map (int mx, int my, int mz, float *map, float max_energy, float cutoff, float hx, float hy, float hz, float x0, float y0, float z0, float bx_1, float by_1, float bz_1, int nbx, int nby, int nbz, const float *bin, const float *bin_zero, int num_binoffsets, const char *binoffsets, int num_extras, const float *extra, int num_vdwparms, const float *vdwparms, int num_probes, const float *probevdwparms, int num_conformers, const float *conformers)


Define Documentation

#define VMDCUDA_COMPUTEMODE_DEFAULT   0
 

Definition at line 45 of file CUDAKernels.h.

Referenced by vmd_cuda_device_props.

#define VMDCUDA_COMPUTEMODE_EXCLUSIVE   1
 

Definition at line 46 of file CUDAKernels.h.

#define VMDCUDA_COMPUTEMODE_PROHIBITED   2
 

Definition at line 47 of file CUDAKernels.h.

#define VMDCUDA_ERR_DRVMISMATCH   -4
 

Definition at line 40 of file CUDAKernels.h.

Referenced by CUDAAccel::CUDAAccel, vmd_cuda_drv_runtime_compatible, and vmd_cuda_num_devices.

#define VMDCUDA_ERR_EMUDEVICE   -5
 

Definition at line 41 of file CUDAKernels.h.

Referenced by vmd_cuda_device_props, and vmd_cuda_num_devices.

#define VMDCUDA_ERR_GENERAL   -1
 

Definition at line 37 of file CUDAKernels.h.

Referenced by vmd_cuda_device_props.

#define VMDCUDA_ERR_NODEVICES   -2
 

Definition at line 38 of file CUDAKernels.h.

Referenced by CUDAAccel::CUDAAccel, vmd_cuda_drv_runtime_compatible, and vmd_cuda_num_devices.

#define VMDCUDA_ERR_NONE   0
 

Definition at line 36 of file CUDAKernels.h.

Referenced by CUDAAccel::CUDAAccel, vmd_cuda_device_props, vmd_cuda_drv_runtime_compatible, and vmd_cuda_num_devices.

#define VMDCUDA_ERR_SOMEDEVICES   -3
 

Definition at line 39 of file CUDAKernels.h.

Referenced by CUDAAccel::CUDAAccel, and vmd_cuda_num_devices.


Function Documentation

int vmd_cuda_bus_bw int    numdevs,
int *    devlist,
double *    hdmbsec,
double *    hdlatusec,
double *    phdmbsec,
double *    phdlatusec,
double *    dhmbsec,
double *    dhlatusec,
double *    pdhmbsec,
double *    pdhlatusec
 

Definition at line 425 of file CUDABench.cu.

Referenced by text_cmd_vmdbench.

int vmd_cuda_device_props int    dev,
char *    name,
int    namelen,
int *    revmajor,
int *    revminor,
unsigned long *    memb,
int *    clockratekhz,
int *    smcount,
int *    overlap,
int *    kerneltimeout,
int *    canmaphostmem,
int *    computemode
 

Definition at line 54 of file CUDAUtil.cu.

void* vmd_cuda_devpool_clear_device_mem void *   
 

Definition at line 42 of file CUDAClearDevice.cu.

int vmd_cuda_devpool_latency wkf_threadpool_t   devpool,
int    tilesize,
double *    kernlaunchlatency,
double *    barlatency,
double *    cyclelatency,
double *    tilelatency,
double *    kernellatency
 

Definition at line 732 of file CUDABench.cu.

Referenced by text_cmd_vmdbench.

void* vmd_cuda_devpool_setdevice void *    voidparms
 

Definition at line 163 of file CUDAUtil.cu.

int vmd_cuda_evaluate_occupancy_map int    mx,
int    my,
int    mz,
float *    map,
float    max_energy,
float    cutoff,
float    hx,
float    hy,
float    hz,
float    x0,
float    y0,
float    z0,
float    bx_1,
float    by_1,
float    bz_1,
int    nbx,
int    nby,
int    nbz,
const float *    bin,
const float *    bin_zero,
int    num_binoffsets,
const char *    binoffsets,
int    num_extras,
const float *    extra,
int    num_vdwparms,
const float *    vdwparms,
int    num_probes,
const float *    probevdwparms,
int    num_conformers,
const float *    conformers
 

Definition at line 1589 of file CUDAVolMapCreateILS.cu.

int vmd_cuda_evaluate_orbital_grid wkf_threadpool_t   devpool,
int    numatoms,
const float *    wave_f,
int    num_wave_f,
const float *    basis_array,
int    num_basis,
const float *    atompos,
const int *    atom_basis,
const int *    num_shells_per_atom,
const int *    num_prim_per_shell,
const int *    shell_types,
int    num_shells,
const int *    numvoxels,
float    voxelsize,
const float *    origin,
float *    orbitalgrid
 

Definition at line 961 of file CUDAOrbital.cu.

int vmd_cuda_globmem_bw int    numdevs,
int *    devlist,
double *    memsetgbsec,
double *    memcpygbsec
 

Definition at line 610 of file CUDABench.cu.

Referenced by text_cmd_vmdbench.

int vmd_cuda_madd_gflops int    numdevs,
int *    devlist,
double *    gflops,
int    testloops
 

Definition at line 189 of file CUDABench.cu.

Referenced by text_cmd_vmdbench.

int vmd_cuda_num_devices int *    numdev
 

Definition at line 118 of file CUDAUtil.cu.

int vmd_cuda_vol_cpotential long int    natoms,
float *    atoms,
float *    grideners,
long int    numplane,
long int    numcol,
long int    numpt,
float    gridspacing
 

Definition at line 223 of file CUDAVolCPotential.cu.


Generated on Tue Nov 24 01:41:14 2009 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002