summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>2008-03-24 07:00:14 +0000
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>2008-03-24 07:00:14 +0000
commit166bf655a6ee9c710205ffab69fccb82a419f175 (patch)
treecb126525126492fa6aa8b747e379f2bd10d69f82
parent28361a1bfc8f155a7b1367a234c9256b7b69da38 (diff)
minor cleanup
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8088 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r--gcell/src/apps/benchmark_dma.cc12
-rw-r--r--gcell/src/apps/benchmark_nop.cc3
-rw-r--r--gcell/src/lib/runtime/gc_job_manager.cc2
-rw-r--r--gcell/src/lib/runtime/gc_job_manager_impl.cc2
-rw-r--r--gcell/src/lib/runtime/spu/gc_main.c2
5 files changed, 17 insertions, 4 deletions
diff --git a/gcell/src/apps/benchmark_dma.cc b/gcell/src/apps/benchmark_dma.cc
index c3df3a91f0..b0af8b74b1 100644
--- a/gcell/src/apps/benchmark_dma.cc
+++ b/gcell/src/apps/benchmark_dma.cc
@@ -19,6 +19,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#if defined(HAVE_CONFIG_H)
+#include <config.h>
+#endif
#include "gc_job_manager.h"
#include "mb_time.h"
#include <getopt.h>
@@ -135,6 +138,10 @@ run_test(unsigned int nspes, unsigned int usecs, unsigned int dma_size, int getp
gbi = 0;
all_jds[i] = mgr->alloc_job_desc();
+ if (all_jds[i] == 0){
+ fprintf(stderr, "alloc_job_desc() returned 0\n");
+ return;
+ }
init_jd(all_jds[i], usecs, &getbuf[gbi], &putbuf[gbi], dma_size, getput_mask);
gbi += dma_size;
}
@@ -176,7 +183,10 @@ run_test(unsigned int nspes, unsigned int usecs, unsigned int dma_size, int getp
}
else {
ncompleted++;
- // printf("ncompleted = %7d\n", ncompleted);
+ if (jds[ci][i]->status != JS_OK){
+ printf("js_status = %d, job_id = %d, ncompleted = %d\n",
+ jds[ci][i]->status, jds[ci][i]->sys.job_id, ncompleted);
+ }
if (nsubmitted < njobs){ // submit another one
if (mgr->submit_job(jds[ci][i])){
jds[ci^1][njds[ci^1]++] = jds[ci][i]; // remember for next iter
diff --git a/gcell/src/apps/benchmark_nop.cc b/gcell/src/apps/benchmark_nop.cc
index 7ef3f636ef..2d3611fd9a 100644
--- a/gcell/src/apps/benchmark_nop.cc
+++ b/gcell/src/apps/benchmark_nop.cc
@@ -19,6 +19,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#if defined(HAVE_CONFIG_H)
+#include <config.h>
+#endif
#include "gc_job_manager.h"
#include "mb_time.h"
#include <getopt.h>
diff --git a/gcell/src/lib/runtime/gc_job_manager.cc b/gcell/src/lib/runtime/gc_job_manager.cc
index edb52a5b79..94090bedf8 100644
--- a/gcell/src/lib/runtime/gc_job_manager.cc
+++ b/gcell/src/lib/runtime/gc_job_manager.cc
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
#include "gc_job_manager.h"
#include "gc_job_manager_impl.h"
diff --git a/gcell/src/lib/runtime/gc_job_manager_impl.cc b/gcell/src/lib/runtime/gc_job_manager_impl.cc
index 13d8f0d973..dd08154d0d 100644
--- a/gcell/src/lib/runtime/gc_job_manager_impl.cc
+++ b/gcell/src/lib/runtime/gc_job_manager_impl.cc
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
#include <gc_job_manager_impl.h>
#include <gc_mbox.h>
diff --git a/gcell/src/lib/runtime/spu/gc_main.c b/gcell/src/lib/runtime/spu/gc_main.c
index 96381fa66e..ef552f14a8 100644
--- a/gcell/src/lib/runtime/spu/gc_main.c
+++ b/gcell/src/lib/runtime/spu/gc_main.c
@@ -19,7 +19,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define ENABLE_GC_LOGGING // define to enable logging
+// #define ENABLE_GC_LOGGING // define to enable logging
#include <spu_intrinsics.h>
#include <spu_mfcio.h>