changeset 1528:360b424125ea draft

bug fix gpu kernel file
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 20 Nov 2012 15:44:17 +0900
parents 27d34e7a1d66
children 504a76847b85
files example/many_task/gpu/QuickSort.cl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/example/many_task/gpu/QuickSort.cl	Wed Nov 14 12:46:21 2012 +0900
+++ b/example/many_task/gpu/QuickSort.cl	Tue Nov 20 15:44:17 2012 +0900
@@ -17,7 +17,7 @@
            __global Data *data)
 {
     int begin = 0;
-    int end = count[0];
+    int end = count[0]-1;
 
     int stack[1024];
     int sp = 0;