Skip to content

Commit

Permalink
mos-core: YOD fix identification of HBM
Browse files Browse the repository at this point in the history
Fix the code that identifies a node as high bandwidth memory.

Change-Id: If1e61697fc60ea9c390552017e3eafcad683b2d2
Signed-off-by: John Attinella <[email protected]>
  • Loading branch information
jattine committed Aug 13, 2021
1 parent a6220d0 commit ccc76bb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion mOS/tools/yod/mos_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,20 @@ static void mos_init_cpu_map(void)
default:
break;
}
} else if (family == 6 && model == 143) {
/* 10 - own node's DDR
* 21 - other node's DDR
* 13 - own node's HBM
* 23 - other node's HBM
*/
switch (distance_map[nr][nc]) {
case 13:
case 23:
type = YOD_HBM;
default:
break;
}
}

cpu_map[nc].elems[YOD_MEM_GROUP] = type;
}
}
Expand Down

0 comments on commit ccc76bb

Please sign in to comment.