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
83284ce6
"libraries/lepton/include/ExpressionTreeNode.h" did not exist on "09786e4bd54ffdcb33f56b282f6c96ec4b626e8d"
Commit
83284ce6
authored
Apr 10, 2013
by
Peter Eastman
Browse files
Added volatile keyword to fix crashes on some GPUs
parent
3e7616fc
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
15 additions
and
15 deletions
+15
-15
platforms/cuda/src/kernels/customGBEnergyN2.cu
platforms/cuda/src/kernels/customGBEnergyN2.cu
+1
-1
platforms/cuda/src/kernels/customGBValueN2.cu
platforms/cuda/src/kernels/customGBValueN2.cu
+1
-1
platforms/cuda/src/kernels/gbsaObc1.cu
platforms/cuda/src/kernels/gbsaObc1.cu
+2
-2
platforms/cuda/src/kernels/nonbonded.cu
platforms/cuda/src/kernels/nonbonded.cu
+1
-1
platforms/opencl/src/kernels/customGBEnergyN2.cl
platforms/opencl/src/kernels/customGBEnergyN2.cl
+1
-1
platforms/opencl/src/kernels/customGBValueN2.cl
platforms/opencl/src/kernels/customGBValueN2.cl
+1
-1
platforms/opencl/src/kernels/gbsaObc.cl
platforms/opencl/src/kernels/gbsaObc.cl
+2
-2
platforms/opencl/src/kernels/nonbonded.cl
platforms/opencl/src/kernels/nonbonded.cl
+1
-1
plugins/amoeba/platforms/cuda/src/kernels/amoebaGk.cu
plugins/amoeba/platforms/cuda/src/kernels/amoebaGk.cu
+1
-1
plugins/amoeba/platforms/cuda/src/kernels/multipoleElectrostatics.cu
...eba/platforms/cuda/src/kernels/multipoleElectrostatics.cu
+1
-1
plugins/amoeba/platforms/cuda/src/kernels/multipoleFixedField.cu
.../amoeba/platforms/cuda/src/kernels/multipoleFixedField.cu
+1
-1
plugins/amoeba/platforms/cuda/src/kernels/multipoleInducedField.cu
...moeba/platforms/cuda/src/kernels/multipoleInducedField.cu
+1
-1
plugins/amoeba/platforms/cuda/src/kernels/pmeMultipoleElectrostatics.cu
.../platforms/cuda/src/kernels/pmeMultipoleElectrostatics.cu
+1
-1
No files found.
platforms/cuda/src/kernels/customGBEnergyN2.cu
View file @
83284ce6
...
...
@@ -178,7 +178,7 @@ extern "C" __global__ void computeN2Energy(unsigned long long* __restrict__ forc
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
THREAD_BLOCK_SIZE
];
__shared__
int
skipTiles
[
THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
platforms/cuda/src/kernels/customGBValueN2.cu
View file @
83284ce6
...
...
@@ -156,7 +156,7 @@ extern "C" __global__ void computeN2Value(const real4* __restrict__ posq, const
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
THREAD_BLOCK_SIZE
];
__shared__
int
skipTiles
[
THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
platforms/cuda/src/kernels/gbsaObc1.cu
View file @
83284ce6
...
...
@@ -216,7 +216,7 @@ extern "C" __global__ void computeBornSum(unsigned long long* __restrict__ globa
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
FORCE_WORK_GROUP_SIZE
];
__shared__
int
skipTiles
[
FORCE_WORK_GROUP_SIZE
];
__shared__
volatile
int
skipTiles
[
FORCE_WORK_GROUP_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
@@ -568,7 +568,7 @@ extern "C" __global__ void computeGBSAForce1(unsigned long long* __restrict__ fo
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
FORCE_WORK_GROUP_SIZE
];
__shared__
int
skipTiles
[
FORCE_WORK_GROUP_SIZE
];
__shared__
volatile
int
skipTiles
[
FORCE_WORK_GROUP_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
platforms/cuda/src/kernels/nonbonded.cu
View file @
83284ce6
...
...
@@ -194,7 +194,7 @@ extern "C" __global__ void computeNonbonded(
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
THREAD_BLOCK_SIZE
];
__shared__
int
skipTiles
[
THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
platforms/opencl/src/kernels/customGBEnergyN2.cl
View file @
83284ce6
...
...
@@ -188,7 +188,7 @@ __kernel void computeN2Energy(
int skipBase = 0;
int currentSkipIndex = tbx;
__local int atomIndices[FORCE_WORK_GROUP_SIZE];
__local int skipTiles[FORCE_WORK_GROUP_SIZE];
__local
volatile
int skipTiles[FORCE_WORK_GROUP_SIZE];
skipTiles[get_local_id(0)] = -1;
while (pos < end) {
...
...
platforms/opencl/src/kernels/customGBValueN2.cl
View file @
83284ce6
...
...
@@ -164,7 +164,7 @@ __kernel void computeN2Value(__global const real4* restrict posq, __local real4*
int skipBase = 0;
int currentSkipIndex = tbx;
__local int atomIndices[FORCE_WORK_GROUP_SIZE];
__local int skipTiles[FORCE_WORK_GROUP_SIZE];
__local
volatile
int skipTiles[FORCE_WORK_GROUP_SIZE];
skipTiles[get_local_id(0)] = -1;
while (pos < end) {
...
...
platforms/opencl/src/kernels/gbsaObc.cl
View file @
83284ce6
...
...
@@ -176,7 +176,7 @@ __kernel void computeBornSum(
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__local
int
atomIndices[FORCE_WORK_GROUP_SIZE]
;
__local
int
skipTiles[FORCE_WORK_GROUP_SIZE]
;
__local
volatile
int
skipTiles[FORCE_WORK_GROUP_SIZE]
;
skipTiles[get_local_id
(
0
)
]
=
-1
;
while
(
pos
<
end
)
{
...
...
@@ -550,7 +550,7 @@ __kernel void computeGBSAForce1(
int skipBase = 0;
int currentSkipIndex = tbx;
__local int atomIndices[FORCE_WORK_GROUP_SIZE];
__local int skipTiles[FORCE_WORK_GROUP_SIZE];
__local
volatile
int skipTiles[FORCE_WORK_GROUP_SIZE];
skipTiles[get_local_id(0)] = -1;
while (pos < end) {
...
...
platforms/opencl/src/kernels/nonbonded.cl
View file @
83284ce6
...
...
@@ -202,7 +202,7 @@ __kernel void computeNonbonded(
int skipBase = 0;
int currentSkipIndex = tbx;
__local int atomIndices[FORCE_WORK_GROUP_SIZE];
__local int skipTiles[FORCE_WORK_GROUP_SIZE];
__local
volatile
int skipTiles[FORCE_WORK_GROUP_SIZE];
skipTiles[get_local_id(0)] = -1;
while (pos < end) {
...
...
plugins/amoeba/platforms/cuda/src/kernels/amoebaGk.cu
View file @
83284ce6
...
...
@@ -760,7 +760,7 @@ extern "C" __global__ void computeEDiffForce(
int
end
=
startTileIndex
+
(
warp
+
1
)
*
numTiles
/
totalWarps
;
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
skipTiles
[
EDIFF_THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
EDIFF_THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
plugins/amoeba/platforms/cuda/src/kernels/multipoleElectrostatics.cu
View file @
83284ce6
...
...
@@ -220,7 +220,7 @@ extern "C" __global__ void computeElectrostatics(
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
THREAD_BLOCK_SIZE
];
__shared__
int
skipTiles
[
THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
plugins/amoeba/platforms/cuda/src/kernels/multipoleFixedField.cu
View file @
83284ce6
...
...
@@ -559,7 +559,7 @@ extern "C" __global__ void computeFixedField(
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
THREAD_BLOCK_SIZE
];
__shared__
int
skipTiles
[
THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
plugins/amoeba/platforms/cuda/src/kernels/multipoleInducedField.cu
View file @
83284ce6
...
...
@@ -329,7 +329,7 @@ extern "C" __global__ void computeInducedField(
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
THREAD_BLOCK_SIZE
];
__shared__
int
skipTiles
[
THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
plugins/amoeba/platforms/cuda/src/kernels/pmeMultipoleElectrostatics.cu
View file @
83284ce6
...
...
@@ -302,7 +302,7 @@ extern "C" __global__ void computeElectrostatics(
int
skipBase
=
0
;
int
currentSkipIndex
=
tbx
;
__shared__
int
atomIndices
[
THREAD_BLOCK_SIZE
];
__shared__
int
skipTiles
[
THREAD_BLOCK_SIZE
];
__shared__
volatile
int
skipTiles
[
THREAD_BLOCK_SIZE
];
skipTiles
[
threadIdx
.
x
]
=
-
1
;
while
(
pos
<
end
)
{
...
...
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