# Inconsistent results across multiple runs?

**URL:** <https://forums.developer.nvidia.com/t/inconsistent-results-across-multiple-runs/5783>\
**Category:** CUDA Programming and Performance\
**Created:** [October 4, 2008, 2:50pm UTC](https://forums.developer.nvidia.com/t/inconsistent-results-across-multiple-runs/5783 "2008-10-04T14:50:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StickGuy](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@StickGuy](https://forums.developer.nvidia.com/u/StickGuy)\
**Post date:** [October 4, 2008, 2:50pm UTC](https://forums.developer.nvidia.com/t/inconsistent-results-across-multiple-runs/5783/1 "2008-10-04T14:50:01Z")

</div>

This is a bit of a long shot, but when I run my simulation multiple times with the same input, the output diverges after some variable amount of time. I expect it’s a problem on my end (e.g. unitialized memory being used somewhere), but has anyone experienced similar problems?

EDIT: It seems the problem was re-using shared memory. I forgot to add a \_\_syncthreads() between reading the values from shared memory and then writing new values to it.
