Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
600a7afa
"wrappers/python/vscode:/vscode.git/clone" did not exist on "83ed602e8dbe5ab8be7bfd533abc3f8dc67b1ad8"
Commit
600a7afa
authored
Nov 04, 2011
by
Peter Eastman
Browse files
Fixed bug in CPU version of GBSA
parent
ad2d5c0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
platforms/opencl/src/kernels/gbsaObc_cpu.cl
platforms/opencl/src/kernels/gbsaObc_cpu.cl
+12
-8
No files found.
platforms/opencl/src/kernels/gbsaObc_cpu.cl
View file @
600a7afa
...
...
@@ -3,19 +3,16 @@
typedef
struct
{
float
x,
y,
z
;
float
q
;
float
fx,
fy,
fz,
fw
;
float
radius,
scaledRadius
;
float
bornSum
;
float
bornRadius
;
float
bornForce
;
}
AtomData
;
}
AtomData1
;
/**
*
Compute
the
Born
sum.
*/
__kernel
void
computeBornSum
(
__global
float*
restrict
global_bornSum,
__global
const
float4*
restrict
posq,
__global
const
float2*
restrict
global_params,
__local
AtomData*
restrict
localData,
__local
AtomData
1
*
restrict
localData,
#
ifdef
USE_CUTOFF
__global
const
ushort2*
restrict
tiles,
__global
const
unsigned
int*
restrict
interactionCount,
float4
periodicBoxSize,
float4
invPeriodicBoxSize,
unsigned
int
maxTiles,
__global
const
unsigned
int*
restrict
interactionFlags
)
{
#
else
...
...
@@ -186,13 +183,20 @@ __kernel void computeBornSum(__global float* restrict global_bornSum, __global c
}
}
typedef struct {
float x, y, z;
float q;
float fx, fy, fz, fw;
float bornRadius;
} AtomData2;
/**
* First part of computing the GBSA interaction.
*/
__kernel void computeGBSAForce1(__global float4* restrict forceBuffers, __global float* restrict
energyBuffer
,
__global const float4* restrict posq, __global const float* restrict global_bornRadii,
__global float* restrict global_bornForce,
__local AtomData* restrict localData,
__kernel void computeGBSAForce1(__global float4* restrict forceBuffers, __global float* restrict
global_bornForce
,
__global
float* restrict energyBuffer, __global
const float4* restrict posq, __global const float* restrict global_bornRadii,
__local AtomData
2
* restrict localData,
#ifdef USE_CUTOFF
__global const ushort2* restrict tiles, __global const unsigned int* restrict interactionCount, float4 periodicBoxSize, float4 invPeriodicBoxSize, unsigned int maxTiles, __global const unsigned int* restrict interactionFlags) {
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment