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
daa9de8a
Commit
daa9de8a
authored
Jun 07, 2018
by
peastman
Browse files
Fixes to CPU OpenCL
parent
82d01134
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
platforms/opencl/src/kernels/gbsaObc_cpu.cl
platforms/opencl/src/kernels/gbsaObc_cpu.cl
+1
-3
No files found.
platforms/opencl/src/kernels/gbsaObc_cpu.cl
View file @
daa9de8a
...
...
@@ -58,7 +58,6 @@ __kernel void computeBornSum(
unsigned
int
atom1
=
x*TILE_SIZE+tgx
;
real
bornSum
=
0.0f
;
real4
posq1
=
posq[atom1]
;
real
charge1
=
charge[atom1]
;
float2
params1
=
global_params[atom1]
;
for
(
unsigned
int
j
=
0
; j < TILE_SIZE; j++) {
real3
pos2
=
(
real3
)
(
localData[j].x,
localData[j].y,
localData[j].z
)
;
...
...
@@ -109,7 +108,6 @@ __kernel void computeBornSum(
unsigned
int
atom1
=
x*TILE_SIZE+tgx
;
real
bornSum
=
0
;
real4
posq1
=
posq[atom1]
;
real
charge1
=
charge[atom1]
;
float2
params1
=
global_params[atom1]
;
for
(
unsigned
int
j
=
0
; j < TILE_SIZE; j++) {
real3
pos2
=
(
real3
)
(
localData[j].x,
localData[j].y,
localData[j].z
)
;
...
...
@@ -319,7 +317,6 @@ __kernel void computeBornSum(
unsigned int atom1 = x*TILE_SIZE+tgx;
real bornSum = 0;
real4 posq1 = posq[atom1];
real charge1 = charge[atom1];
float2 params1 = global_params[atom1];
for (unsigned int j = 0; j < TILE_SIZE; j++) {
real3 pos2 = (real3) (localData[j].x, localData[j].y, localData[j].z);
...
...
@@ -684,6 +681,7 @@ __kernel void computeGBSAForce1(
unsigned
int
atom1
=
x*TILE_SIZE+tgx
;
real4
force
=
0
;
real4
posq1
=
posq[atom1]
;
real
charge1
=
charge[atom1]
;
APPLY_PERIODIC_TO_POS_WITH_CENTER
(
posq1,
blockCenterX
)
float
bornRadius1
=
global_bornRadii[atom1]
;
for
(
unsigned
int
j
=
0
; j < TILE_SIZE; j++) {
...
...
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