From: bdemsky Date: Mon, 20 Jun 2011 06:52:47 +0000 (+0000) Subject: get rid of manually created table... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5840fc860745f55eba681fdab5ea03abba50b47f;p=IRC.git get rid of manually created table... --- diff --git a/Robust/src/Runtime/bamboo/multicoremem_helper.c b/Robust/src/Runtime/bamboo/multicoremem_helper.c new file mode 100644 index 00000000..611925f2 --- /dev/null +++ b/Robust/src/Runtime/bamboo/multicoremem_helper.c @@ -0,0 +1,26 @@ +#include "multicoremem_helper.h" +#include "runtime_arch.h" + +void buildCore2Test() { + for(int i=0;i7)||(y<0||y>7)) { + //bad coordinate + core2test[i][index]=-1; + } else { + int corenum=BAMBOO_CORE(x,y); + if (corenum<0||corenum>=NUMCORES4GC) { + core2test[i][index]=-1; + } else { + core2test[i][index]=corenum; + } + } + index++; + } + } + } +}