Commit 13d89753 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error on AMD's OpenCL implementation

parent de04cdb3
...@@ -3,14 +3,9 @@ ...@@ -3,14 +3,9 @@
*/ */
__kernel void integrateVerletPart1(int numAtoms, __global float2* dt, __global float4* posq, __global float4* velm, __global float4* force, __global float4* posDelta) { __kernel void integrateVerletPart1(int numAtoms, __global float2* dt, __global float4* posq, __global float4* velm, __global float4* force, __global float4* posDelta) {
__local float dtPos; float2 stepSize = dt[0];
__local float dtVel; float dtPos = stepSize.y;
if (get_local_id(0) == 0) { float dtVel = 0.5f*(stepSize.x+stepSize.y);
float2 stepSize = dt[0];
dtPos = stepSize.y;
dtVel = 0.5f*(stepSize.x+stepSize.y);
}
barrier(CLK_LOCAL_MEM_FENCE);
int index = get_global_id(0); int index = get_global_id(0);
while (index < numAtoms) { while (index < numAtoms) {
float4 pos = posq[index]; float4 pos = posq[index];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment