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
84dda6a7
Commit
84dda6a7
authored
Feb 19, 2009
by
Mark Friedrichs
Browse files
If seed <=1, then use time() to generate seed
parent
8c0b4073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+1
-1
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
84dda6a7
...
...
@@ -418,7 +418,7 @@ void CudaIntegrateLangevinStepKernel::initialize(const System& system, const Lan
// if LangevinIntegrator seed does not equal default value or is less than/equal to 0, then
// set gpu seed and redo random values
if
(
integrator
.
getRandomNumberSeed
()
<
1
){
if
(
integrator
.
getRandomNumberSeed
()
<
=
1
){
_gpuContext
*
gpu
=
data
.
gpu
;
gpu
->
seed
=
static_cast
<
unsigned
long
>
(
integrator
.
getRandomNumberSeed
()
);
gpuInitializeRandoms
(
gpu
);
...
...
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