   checkCUDA( cudaEventSynchronize( stop ) );
   checkCUDA( cudaEventElapsedTime( &elapsedTime, start, stop ) );
   printf("CPU total time is %f ms, bandwidth %f GB/s\n", elapsedTime,
-    sizeof(floatType_t) * (double) size /
+    sizeof(FLOATTYPE_T) * (double) size /
     ( (double) elapsedTime / 1000.0 ) * 1.e-9);
 
 
-  floatType_t diff = abs( good_out - h_out );
+  FLOATTYPE_T diff = abs( good_out - h_out );
 
   if( diff / h_out < 0.001 ) printf("PASS\n");
   else

  float elapsedTime;
  checkCUDA( cudaEventElapsedTime( &elapsedTime, start, stop ) );

  printf("Total elements is %d, %f GB\n", size, sizeof(floatType_t)*
    (double)size * 1.e-9 );
  printf("GPU total time is %f ms, bandwidth %f GB/s\n", elapsedTime,
    sizeof(floatType_t) * (double) size /
    ( (double) elapsedTime / 1000.0 ) * 1.e-9);

/* copy result back to host */

  checkCUDA( cudaMemcpy( &h_out, d_out, sizeof(floatType_t), 
    cudaMemcpyDeviceToHost ) );

  checkCUDA( cudaEventRecord( start, 0 ) );

  checkCUDA( cudaEventRecord( start, 0 ) );

/* launch the kernel on the GPU */
  cub::DeviceReduce::Sum( d_temp_storage, temp_storage_bytes, d_in, d_out, 
    size );

/* stop the timers */

