     b40c::DeviceInit(args);
 
 	typedef unsigned int T;
-	const int NUM_ELEMENTS = 10;
+	const int NUM_ELEMENTS = 34567;
 	Max<T> max_op;
 
 	// Allocate and initialize host problem data and host reference solution
-	T h_data[NUM_ELEMENTS];
-	T h_reference[1];
+	T *h_data = new T[NUM_ELEMENTS];
+	T *h_reference = new T[1];
 	for (int i = 0; i < NUM_ELEMENTS; i++) {
 		h_data[i] = i;
 		h_reference[0] = (i == 0) ?


	printf("Custom reduction: "); b40c::CompareDeviceResults(h_reference, d_dest, 1); printf("\n");

	return 0;
}


	// Create a reduction enactor
	b40c::reduction::Enactor reduction_enactor;
	
	//
	// Example 1: Enact simple reduction using internal tuning heuristics
	//
