Commit a63eef02 authored by Edgar Solomonik's avatar Edgar Solomonik
Browse files

lda of topo dimensions must be inversly ordered for some reason...

......@@ -52,7 +52,11 @@ namespace CTF_int {
dim_comm = (CommData*)CTF_int::alloc(order_*sizeof(CommData));
is_activated = false;
memcpy(lens, lens_, order_*sizeof(int));
// memcpy(lens, lens_, order_*sizeof(int));
//reverse FIXME: this is assumed somewhere...
for (int i=0; i<order; i++){
lens[i] = lens_[order-i-1];
}
int stride = 1, cut = 0;
int rank = glb_comm.rank;
......
......@@ -27,7 +27,7 @@ namespace CTF_int {
/* Force redistributions always by setting to 1 */
#define REDIST 0
//#define VERIFY 0
#define VERIFY_REMAP 0
#define VERIFY_REMAP 1
#define FOLD_TSR 1
#define PERFORM_DESYM 1
#define ALLOW_NVIRT 1024
......
......@@ -915,7 +915,7 @@ namespace CTF_int {
}
if (idx[i] == prl.idx[j]){
map->type = PHYSICAL_MAP;
map->np = prl.part.lens[j];
map->np = top.dim_comm[j].np;
map->cdt = j;
}
}
......@@ -928,7 +928,7 @@ namespace CTF_int {
}
if (idx[i] == blk.idx[j]){
map->type = VIRTUAL_MAP;
map->np = blk.part.lens[j];
map->np = top.dim_comm[j].np;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment