-
Notifications
You must be signed in to change notification settings - Fork 0
/
deviceAnalyticVolume.h
41 lines (34 loc) · 2.25 KB
/
deviceAnalyticVolume.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* deviceAnalyticVolume.h
* Prototypes for GPU-accelerated volume calculation functions
*
* Author: Imran Haque, 2009
* Copyright 2009, Stanford University
*
* This file is licensed under the terms of the GPL. Please see
* the COPYING file in the accompanying source distribution for
* full license terms.
*
*/
__device__ void transformToRotationMatrix(float* t,float* matrix);
__device__ void transformMolecule(float* x,float* y,float* z,uint natoms,float* matrix,float* translation);
__device__ void getQuatGradients(float* x,float* y,float* z,uint ourfitcount,float* transform,float* dxdq,float* dxdr,float* dydr,float* dxdu);
__global__ void deviceOverlapVolume(float* fitmols,uint* fitatomcount,size_t fitmol_pitch,
float* refmol ,uint refatomcount,size_t refmol_pitch,
float* transforms,size_t transform_pitch,
float* finalOverlaps);
__global__ void deviceOverlapAndGradient(float* fitmols,uint* fitatomcount,size_t fitmol_pitch,
float* refmol ,uint refatomcount,size_t refmol_pitch,
float* transforms,size_t transform_pitch,
float* finalOverlapsAndGradients,size_t gradient_pitch);
int transformToRotationMatrix_c(float* t,float* matrix);
int transformMolecule_c(float* x,float* y,float* z,uint natoms,float* matrix,float* translation);
int getQuatGradients_c(float* x,float* y,float* z,uint ourfitcount,float* transform,float* dxdq,float* dxdr,float* dydr,float* dxdu);
int deviceOverlapVolume_c(float* fitmols,uint* fitatomcount,size_t fitmol_pitch,
float* refmol ,uint refatomcount,size_t refmol_pitch,
float* transforms,size_t transform_pitch,
float* finalOverlaps);
int deviceOverlapAndGradient_c(float* fitmols,uint* fitatomcount,size_t fitmol_pitch,
float* refmol ,uint refatomcount,size_t refmol_pitch,
float* transforms,size_t transform_pitch,
float* finalOverlapsAndGradients,size_t gradient_pitch);