From 5840fc860745f55eba681fdab5ea03abba50b47f Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 20 Jun 2011 06:52:47 +0000 Subject: [PATCH] get rid of manually created table... --- .../src/Runtime/bamboo/multicoremem_helper.c | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Robust/src/Runtime/bamboo/multicoremem_helper.c 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++; + } + } + } +} -- 2.34.1