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
13d89753
"vscode:/vscode.git/clone" did not exist on "c7549a4b00ec3fc82b6642abb351d0085434be43"
Commit
13d89753
authored
Nov 06, 2009
by
Peter Eastman
Browse files
Fixed compilation error on AMD's OpenCL implementation
parent
de04cdb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
platforms/opencl/src/kernels/verlet.cl
platforms/opencl/src/kernels/verlet.cl
+3
-8
No files found.
platforms/opencl/src/kernels/verlet.cl
View file @
13d89753
...
...
@@ -3,14 +3,9 @@
*/
__kernel
void
integrateVerletPart1
(
int
numAtoms,
__global
float2*
dt,
__global
float4*
posq,
__global
float4*
velm,
__global
float4*
force,
__global
float4*
posDelta
)
{
__local
float
dtPos
;
__local
float
dtVel
;
if
(
get_local_id
(
0
)
==
0
)
{
float2
stepSize
=
dt[0]
;
dtPos
=
stepSize.y
;
dtVel
=
0.5f*
(
stepSize.x+stepSize.y
)
;
}
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
float
dtPos
=
stepSize.y
;
float
dtVel
=
0.5f*
(
stepSize.x+stepSize.y
)
;
int
index
=
get_global_id
(
0
)
;
while
(
index
<
numAtoms
)
{
float4
pos
=
posq[index]
;
...
...
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