File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/runtime_src/xdp/profile/plugin/aie_profile Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,7 @@ namespace xdp {
160
160
0 : static_cast <uint8_t >(tile.stream_ids .at (portnum));
161
161
uint8_t idToReport = (tile.subtype == io_type::GMIO) ? channel : streamPortId;
162
162
uint8_t isChannel = (tile.subtype == io_type::GMIO) ? 1 : 0 ;
163
- uint8_t isMaster = (portnum >= tile.is_master_vec .size ()) ?
164
- 0 : static_cast <uint8_t >(tile.is_master_vec .at (portnum));
163
+ uint8_t isMaster = aie::isInputSet (type, metricSet) ? 0 : 1 ;
165
164
166
165
return ((isMaster << PAYLOAD_IS_MASTER_SHIFT)
167
166
| (isChannel << PAYLOAD_IS_CHANNEL_SHIFT) | idToReport);
Original file line number Diff line number Diff line change @@ -163,8 +163,7 @@ namespace xdp {
163
163
0 : static_cast <uint8_t >(tile.stream_ids .at (portnum));
164
164
uint8_t idToReport = (tile.subtype == io_type::GMIO) ? channel : streamPortId;
165
165
uint8_t isChannel = (tile.subtype == io_type::GMIO) ? 1 : 0 ;
166
- uint8_t isMaster = (portnum >= tile.is_master_vec .size ()) ?
167
- 0 : static_cast <uint8_t >(tile.is_master_vec .at (portnum));
166
+ uint8_t isMaster = aie::isInputSet (type, metricSet) ? 0 : 1 ;
168
167
169
168
return ((isMaster << PAYLOAD_IS_MASTER_SHIFT)
170
169
| (isChannel << PAYLOAD_IS_CHANNEL_SHIFT) | idToReport);
You can’t perform that action at this time.
0 commit comments