diff --git a/examples_cuda/sort/sort1.cu b/examples_cuda/sort/sort1.cu index 49886fdb..2c94a409 100644 --- a/examples_cuda/sort/sort1.cu +++ b/examples_cuda/sort/sort1.cu @@ -247,7 +247,7 @@ void sort_ispc ( int n, unsigned int code[], int order[], int ntasks, { int num = ntasks; int span = n / num; -#if 0 +#if 1 int hsize = 256*programCount*num; int * hist = __new< int>(hsize); int64 * pair = __new< int64>(n); @@ -293,7 +293,7 @@ void sort_ispc ( int n, unsigned int code[], int order[], int ntasks, unpack<<>> (span, n, pair, code, order); sync; -#if ALLOCATED +#ifdef ALLOCATED __delete(g); __delete(hist); __delete(pair);