Skip to content

Commit a14aee1

Browse files
don't access g_vpr_ctx.cl_helper().atom_noc_grp_id when re-clustering API is used
1 parent 4c7d5ff commit a14aee1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/pack/cluster_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,8 @@ bool atom_cluster_noc_group_check(AtomBlockId blk_id,
13841384
ClusterBlockId clb_index,
13851385
int verbosity,
13861386
NocGroupId& temp_cluster_noc_grp_id) {
1387-
const NocGroupId atom_noc_grp_id = g_vpr_ctx.cl_helper().atom_noc_grp_id[blk_id];
1387+
const auto& atom_noc_grp_ids = g_vpr_ctx.cl_helper().atom_noc_grp_id;
1388+
const NocGroupId atom_noc_grp_id = atom_noc_grp_ids.empty() ? NocGroupId::INVALID() : atom_noc_grp_ids[blk_id];
13881389

13891390
if (temp_cluster_noc_grp_id == NocGroupId::INVALID()) {
13901391
// the cluster does not have a NoC group

0 commit comments

Comments
 (0)