Modified GPU Manager so that quiescence will not be detected in situations
[charm.git] / src / arch / cuda / hybridAPI / wrqueue.cu
index 566fc5649b3eeae2b1005b1c02e6f6419099a116..00cc2b5d28eb003e8d59e925bb3a22bcff194a81 100644 (file)
@@ -8,6 +8,7 @@
  *
  */
 
+#include "ck.h"
 #include "cuda-hybrid-api.h"
 #include "wrqueue.h"
 #include "stdio.h"
@@ -77,6 +78,8 @@ void enqueue(workRequestQueue *q, workRequest *wr) {
 
   q->size++; 
 
+  CpvAccess(_qd)->create();
+
 #ifdef GPU_WRQ_VERBOSE
   printf("(%d) ENQ size: %d\n", CmiMyPe(), q->size);
 #endif
@@ -95,6 +98,9 @@ void dequeue(workRequestQueue *q) {
 #ifdef GPU_WRQ_VERBOSE
   printf("(%d) DEQ size: %d\n", CmiMyPe(), q->size);
 #endif
+
+  CpvAccess(_qd)->process();
+
 }
 
 int deleteWRqueue(workRequestQueue *q) {