summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2014-07-04 14:18:48 +0200
committerVolker Hoffmann <volker@cheleb.net>2014-07-04 14:19:16 +0200
commit85e3015c19e2e4eb57abe3d63da5b36669886e5d (patch)
treee78be67e67cbb3dff62cd39ad38492378b6196bd
parentc0be794f10da60cc2f97abbc55ce1eca3c815ce4 (diff)
don't be careless
-rw-r--r--functionTest.cu1
1 files changed, 1 insertions, 0 deletions
diff --git a/functionTest.cu b/functionTest.cu
index 458554f..38863ba 100644
--- a/functionTest.cu
+++ b/functionTest.cu
@@ -7,6 +7,7 @@ __device__ void f2(int idx, float x_s[nthreads])
{
__shared__ float y_s[nthreads];
y_s[idx] = x_s[idx];
+ __syncthreads();
if(idx>0) {
printf("%i %.2e %.2e %.2e %.2e\n", idx, x_s[idx], x_s[idx-1], y_s[idx], y_s[idx-1]);
} else {