Skip to content

Commit

Permalink
[XDP] Fix the incorrect xclbin type deduction & add safe check (#8380)
Browse files Browse the repository at this point in the history
  • Loading branch information
vipangul authored Aug 30, 2024
1 parent 8cedab5 commit e67d774
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/runtime_src/xdp/profile/database/static_info_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2261,6 +2261,8 @@ namespace xdp {
is_aie_available = true;

data = xrt_core::xclbin_int::get_axlf_section(xclbin, IP_LAYOUT);
if (!data.first || !data.second)
data = xrt_core::xclbin_int::get_axlf_section(xclbin, DEBUG_IP_LAYOUT);
if (data.first && data.second)
is_pl_available = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ void AieTracePluginUnified::updateAIEDevice(void *handle) {

// First, check against memory bank size
// NOTE: Check first buffer for PLIO; assume bank 0 for GMIO
uint8_t memIndex = isPLIO ? deviceIntf->getAIETs2mmMemIndex(0) : 0;
uint8_t memIndex = 0;
if (isPLIO && (deviceIntf != nullptr))
memIndex = deviceIntf->getAIETs2mmMemIndex(0);

Memory *memory = (db->getStaticInfo()).getMemory(deviceID, memIndex);

if (memory != nullptr) {
Expand Down

0 comments on commit e67d774

Please sign in to comment.