 
 		} else {
 			count++;
-			if (count > 50) {
-				count = 0;
-			}
+			//if (count > 50) {
+			//	count = 0;
+			//}
 		}
 	}
 	/*

	// initialize cuPrintf
	cudaPrintfInit();

	device_method<<<1, 1>>>(d_kernelWrapper);

	// display the device's output
	cudaPrintfDisplay();

	}

	__device__ __host__ int getValue(int val) {
		reset();
		return val;
		/*
		 command = GET_VALUE;
		 param1 = val;
		 has_task = true;
		 //__threadfence_system();

		 // wait for socket communication to end
		 while (!result_available) {
		 }

		 reset();
		 return result_int;
		 */
	}

	__device__ __host__ void sendDone() {
