Changeset: 1f6f56ac74cb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1f6f56ac74cb
Modified Files:
monetdb5/scheduler/Tests/query00.mal
monetdb5/scheduler/run_multicore.c
monetdb5/scheduler/run_multicore.h
Branch: mutation
Log Message:
Use read-only BATs to reduce slice cost.
diffs (34 lines):
diff --git a/monetdb5/scheduler/Tests/query00.mal
b/monetdb5/scheduler/Tests/query00.mal
--- a/monetdb5/scheduler/Tests/query00.mal
+++ b/monetdb5/scheduler/Tests/query00.mal
@@ -44,6 +44,7 @@ end query;
optimizer.multicore("user","query");
function testrun();
b:= initialize();
+ bat.setReadMode(b);
user.query(0,b);
user.query(1,b);
user.query(2,b);
diff --git a/monetdb5/scheduler/run_multicore.c
b/monetdb5/scheduler/run_multicore.c
--- a/monetdb5/scheduler/run_multicore.c
+++ b/monetdb5/scheduler/run_multicore.c
@@ -87,6 +87,7 @@ RUNmulticore(Client cntxt, MalBlkPtr mb,
clk = GDKusec();
msg = runMALdataflow(cntxt, mutant->src, getPC(mb,pci), mutant->stk);
+ mutant->src->calls++;
mutant->runtime += GDKusec()- clk;
*ret = 0;
diff --git a/monetdb5/scheduler/run_multicore.h
b/monetdb5/scheduler/run_multicore.h
--- a/monetdb5/scheduler/run_multicore.h
+++ b/monetdb5/scheduler/run_multicore.h
@@ -48,7 +48,7 @@ typedef struct MUTANT{
int target; // operation changed from previous
struct MUTANT *next;
} *Mutant;
-#define DEBUG_MULTICORE if(1)
+#define DEBUG_MULTICORE if(0)
run_multicore_export str RUNmulticore(Client cntxt, MalBlkPtr mb, MalStkPtr
stk, InstrPtr p);
run_multicore_export void multicorePrint(Client cntxt, Mutant m);
#endif /* MAL_RUN_MULTICORE */
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list