diff example/many_task/gpu/QuickSort.cl @ 1851:637fa9a4105b draft

fix many_task ( sort )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 21 Dec 2013 19:42:17 +0900
parents 5c4e3f0d372a
children f800f61a0311
line wrap: on
line diff
--- a/example/many_task/gpu/QuickSort.cl	Sat Dec 21 10:28:18 2013 +0900
+++ b/example/many_task/gpu/QuickSort.cl	Sat Dec 21 19:42:17 2013 +0900
@@ -47,7 +47,7 @@
             data[where].index = data[begin].index;
             int i;
             p = begin;
-            for (i=begin+1; i<=end; i++) {
+            for (i=begin+1; i<end; i++) {
                 if (data[i].index < pivot) {
                     p++;
                     swap(data, p, i);