     
     InDotPtr<real> inPtr(d_x, d_y);
     MulOutDevPtr<real> outPtr(d_z, alpha);
+#if 0
     size_t temp_storage_bytes;
     cub::DeviceSegmentedReduce::Sum(NULL, temp_storage_bytes,
                                     inPtr, outPtr, nBatch,

                                    Linear(size, 0), Linear(size, size),
                                    stream_, CUB_DEBUG);
    DEBUG_SYNC;
}

template <class real>

#include "DeviceKernels.h"
#include "cub_iterator.cuh"
#include <cub/cub.cuh>
#include <cuda/DeviceSegmentedSum.cuh>

using sqaod::SizeType;
using sqaod::IdxType;
