Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion profile/device/aie_trace/aie_trace_offload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ void AIETraceOffload::startOffload()

void AIETraceOffload::continuousOffload()
{
if (!bufferInitialized && !initReadTrace()) {
if (!bufferInitialized) {
// initReadTrace failed to allocate the buffer, cannot offload
offloadFinished();
return;
}
Expand Down
4 changes: 3 additions & 1 deletion profile/device/hal_device/xdp_hal_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ size_t HalDevice::alloc(size_t size, uint64_t memoryIndex)

void HalDevice::free(size_t)
{
return;
if(!id) return;
size_t boIndex = id - 1;
xrt_bos[boIndex] = xrt::bo();
}

void* HalDevice::map(size_t id)
Expand Down