        result[index] = alpha * x[index] + y[index];
 }
 
-void
-saxpyCuda(int N, float alpha, float* xarray, float* yarray, float* resultarray) {
+void saxpyCuda(int N, float alpha, float* xarray, float* yarray, float* resultarray) {
 
     int totalBytes = sizeof(float) * 3 * N;
+    int bufferSize = sizeof(float) * N;
 
     // compute number of blocks and threads per block
     const int threadsPerBlock = 512;

    // these buffers are used in the call to saxpy_kernel below
    // without being initialized.
    //

    // start timing after allocation of device memory.
    double startTime = CycleTimer::currentSeconds();


extern float toBW(int bytes, float sec);

__global__ void saxpy_kernel(int N, float alpha, float* x, float* y, float* result) {

    // compute overall index from position of thread in current block,
    // and given the block we are in
