 	// initialize cuPrintf
 	cudaPrintfInit();
 
-	device_method<<<2, 1>>>(d_kernelWrapper);
+	device_method<<<4, 1>>>(d_kernelWrapper);
 
 	// display the device's output
 	cudaPrintfDisplay();

		int old = atomicCAS((int *) &d_kernelWrapper->lock_thread_id, -1,
				thread_id);

		cuPrintf("Thread %d old: %d\n", thread_id, old);

		if (old == -1 || old == thread_id) {
			//do critical section code
			// thread won race condition


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

int main(void) {
