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
aeb2f4ac
Commit
aeb2f4ac
authored
Feb 28, 2009
by
Peter Eastman
Browse files
Reduced memory use for random numbers. Also reduced the frequency of reordering water molecules.
parent
8055a541
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+1
-1
platforms/cuda/src/kernels/gpu.cpp
platforms/cuda/src/kernels/gpu.cpp
+1
-1
platforms/cuda/tests/TestCudaRandom.cpp
platforms/cuda/tests/TestCudaRandom.cpp
+1
-1
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
aeb2f4ac
...
...
@@ -47,7 +47,7 @@ using namespace std;
static
void
calcForces
(
OpenMMContextImpl
&
context
,
CudaPlatform
::
PlatformData
&
data
)
{
_gpuContext
*
gpu
=
data
.
gpu
;
if
(
data
.
stepCount
%
1
00
==
0
)
if
(
data
.
stepCount
%
2
00
==
0
)
gpuReorderAtoms
(
gpu
);
data
.
stepCount
++
;
kClearForces
(
gpu
);
...
...
platforms/cuda/src/kernels/gpu.cpp
View file @
aeb2f4ac
...
...
@@ -1198,7 +1198,7 @@ int gpuAllocateInitialBuffers(gpuContext gpu)
gpu
->
psAtomIndex
->
Upload
();
// Determine randoms
gpu
->
seed
=
1
;
gpu
->
sim
.
randomFrames
=
95
;
gpu
->
sim
.
randomFrames
=
20
;
gpu
->
sim
.
randomIterations
=
gpu
->
sim
.
randomFrames
;
gpu
->
sim
.
randoms
=
gpu
->
sim
.
randomFrames
*
gpu
->
sim
.
paddedNumberOfAtoms
-
5
*
GRID
;
gpu
->
sim
.
totalRandoms
=
gpu
->
sim
.
randoms
+
gpu
->
sim
.
paddedNumberOfAtoms
;
...
...
platforms/cuda/tests/TestCudaRandom.cpp
View file @
aeb2f4ac
...
...
@@ -48,7 +48,7 @@ static const float RGAS = BOLTZMANN * AVOGADRO; // (J
static
const
float
BOLTZ
=
(
RGAS
/
KILO
);
// (kJ/(mol K))
void
testGaussian
()
{
_gpuContext
*
gpu
=
(
_gpuContext
*
)
gpuInit
(
1
000
);
_gpuContext
*
gpu
=
(
_gpuContext
*
)
gpuInit
(
5
000
);
gpu
->
sim
.
Yv
=
1.0
;
gpu
->
sim
.
Yx
=
1.0
;
gpu
->
sim
.
V
=
1.0
;
...
...
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