#include <stdio.h>#include <stdlib.h>#include <string.h>#include <cuda.h>#include "WKFThreads.h"#include "WKFUtils.h"#include "CUDAKernels.h"#include "utilities.h"Go to the source code of this file.
Compounds | |
| union | flint_t |
| struct | occthrparms_t |
Defines | |
| #define | CUERR |
| #define | USE_ENERGY_EXCL |
| #define | TEST_MBLOCK_EXCL |
| #define | TEST_SHIFT_EXCL |
| #define | MAX_THREADBLOCKS 65536 |
| #define | BIN_DEPTH 8 |
| #define | BIN_SLOTSIZE 4 |
| #define | BIN_SIZE (BIN_DEPTH * BIN_SLOTSIZE) |
| #define | BIN_SHIFT 5 |
| #define | BIN_SLOTSHIFT 2 |
| #define | MAX_VDWPARMS 160 |
| #define | MAX_PROBES 8 |
| #define | MAX_EXTRAS 50 |
| #define | MAX_BINOFFSETS 1467 |
| #define | MAX_EXCLOFFSETS 27 |
| #define | MAX_CONFORMERS 586 |
| #define | DO_ONE_PLANE |
| #define | THBLEN 4 |
| #define | NTHREADSPERBLOCK (THBLEN*THBLEN*THBLEN) |
| #define | BSHIFT 2 |
| #define | NTPBSHIFT 6 |
| #define | NCONFPERLOOP 5 |
| #define | NTPB_TIMES_NCPL (NTHREADSPERBLOCK * NCONFPERLOOP) |
| #define | PADMASK (THBLEN-1) |
| #define | MAX_ALLOWABLE_ENERGY 87.f |
| #define | TIME_PER_MONOATOM_WORKUNIT 1.24553913519431e-10 |
| #define | TIME_PER_MULTIATOM_WORKUNIT 5.24559386973180e-09 |
| #define | MAX_TIME_PER_KERNEL 1.f |
| #define | DEFAULT_EXCL_DIST 1.f |
Typedefs | |
| typedef flint_t | flint |
| typedef occthrparms_t | occthrparms |
Functions | |
| __global__ void | cuda_find_energy_exclusions (int *excl, const flint *bin_zero, int nbx, int nby, int mzblocks, int mzblockoffset) |
| __global__ void | cuda_occupancy_monoatom (float *map, const int *excl, const flint *bin_zero, int nbx, int nby, int mzblocks, int mzblockoffset) |
| __global__ void | cuda_occupancy_multiatom (float *map, const int *excl, const flint *bin_zero, int nbx, int nby, int mzblocks, int mzblockoffset) |
| void * | cuda_occupancy_thread (void *voidparms) |
| 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) |
Variables | |
| __constant__ float | const_max_energy |
| __constant__ float | const_min_occupancy |
| __constant__ float | const_cutoff |
| __constant__ float | const_min_excldist |
| __constant__ float | const_hx |
| __constant__ float | const_hy |
| __constant__ float | const_hz |
| __constant__ float | const_x0 |
| __constant__ float | const_y0 |
| __constant__ float | const_z0 |
| __constant__ float | const_bx_1 |
| __constant__ float | const_by_1 |
| __constant__ float | const_bz_1 |
| __constant__ float | const_inv_numconf |
| __constant__ int | const_num_binoffsets |
| __constant__ int | const_num_extras |
| __constant__ int | const_num_probes |
| __constant__ int | const_num_conformers |
| __constant__ float | const_vdwparms [2 *MAX_VDWPARMS] |
| __constant__ float | const_probevdwparms [2 *MAX_PROBES] |
| __constant__ flint | const_extra [BIN_SLOTSIZE *MAX_EXTRAS] |
| __constant__ int | const_binoffsets [MAX_BINOFFSETS] |
| __constant__ int | const_excloffsets [MAX_EXCLOFFSETS] |
| __constant__ float | const_conformers [3 *MAX_PROBES *MAX_CONFORMERS] |
|
|
Definition at line 87 of file CUDAVolMapCreateILS.cu. |
|
|
Definition at line 90 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, and cuda_occupancy_multiatom. |
|
|
Definition at line 89 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 91 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, and cuda_occupancy_multiatom. |
|
|
Definition at line 88 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 183 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Value: do { \
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; \
} \
} while (0)Definition at line 39 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
|
|
|
Definition at line 177 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, and cuda_occupancy_multiatom. |
|
|
Definition at line 200 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom. |
|
|
Definition at line 161 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
Definition at line 173 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
Definition at line 165 of file CUDAVolMapCreateILS.cu. |
|
|
Definition at line 157 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
Definition at line 154 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 85 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
|
|
|
Definition at line 151 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
Definition at line 191 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom. |
|
|
Definition at line 181 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, and cuda_occupancy_multiatom. |
|
|
Definition at line 196 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom. |
|
|
Definition at line 185 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, and cuda_occupancy_multiatom. |
|
|
Definition at line 198 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 76 of file CUDAVolMapCreateILS.cu. |
|
|
Definition at line 77 of file CUDAVolMapCreateILS.cu. |
|
|
Definition at line 180 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
|
|
|
|
|
|
Definition at line 68 of file CUDAVolMapCreateILS.cu. |
|
|
|
|
|
|
|
||||||||||||||||||||||||||||
|
Definition at line 324 of file CUDAVolMapCreateILS.cu. References BIN_SHIFT, BIN_SIZE, BIN_SLOTSHIFT, BIN_SLOTSIZE, BSHIFT, const_binoffsets, const_bx_1, const_by_1, const_bz_1, const_cutoff, const_extra, const_hx, const_hy, const_hz, const_max_energy, const_num_binoffsets, const_num_extras, const_probevdwparms, const_vdwparms, const_x0, const_y0, const_z0, DO_ONE_PLANE, flint_t::f, flint_t::i, NTHREADSPERBLOCK, and NTPBSHIFT. |
|
||||||||||||||||||||||||||||||||
|
Definition at line 502 of file CUDAVolMapCreateILS.cu. References BIN_SHIFT, BIN_SIZE, BIN_SLOTSHIFT, BIN_SLOTSIZE, BSHIFT, const_binoffsets, const_bx_1, const_by_1, const_bz_1, const_cutoff, const_extra, const_hx, const_hy, const_hz, const_max_energy, const_num_binoffsets, const_num_extras, const_probevdwparms, const_vdwparms, const_x0, const_y0, const_z0, DO_ONE_PLANE, flint_t::f, flint_t::i, NTHREADSPERBLOCK, and NTPBSHIFT. |
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Definition at line 162 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 142 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 142 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 142 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 174 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 138 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 166 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
Definition at line 158 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 140 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 140 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 140 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 144 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 136 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, and cuda_occupancy_thread. |
|
|
Definition at line 139 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_thread. |
|
|
Definition at line 137 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 146 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 149 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 147 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 148 of file CUDAVolMapCreateILS.cu. Referenced by cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 155 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 152 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 141 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 141 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
|
|
Definition at line 141 of file CUDAVolMapCreateILS.cu. Referenced by cuda_find_energy_exclusions, cuda_occupancy_monoatom, cuda_occupancy_multiatom, and cuda_occupancy_thread. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002