CUDA: Modified conv-mach.h to prevent sleep calls in converse if there is no CPU...
authorLukasz Wesolowski <wesolwsk@talent.cs.uiuc.edu>
Mon, 8 Mar 2010 19:05:16 +0000 (13:05 -0600)
committerLukasz Wesolowski <wesolwsk@talent.cs.uiuc.edu>
Mon, 8 Mar 2010 19:05:16 +0000 (13:05 -0600)
The sleep calls caused poor performance when GPU was running while the CPU was idle.

src/arch/net-linux-amd64-cuda/conv-mach.h

index b9a92e097918f88c2dbd58ad8065f5f988e0e12f..7d7f4c2728bbf162fbd0c23401bf23d518a61c5d 100644 (file)
@@ -63,8 +63,8 @@
 
 #define CMK_64BIT    1
 
-#define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   0
-#define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     1
+#define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   1
+#define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     0
 
 
 #define CMK_DEBUG_MODE                                    0