Skip to content

Commit

Permalink
Fix xrt driver
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang93 committed Dec 11, 2024
1 parent 81fe2ab commit 62d9133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions runtime/src/iree-amd-aie/driver/xrt/xrt_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,10 @@ iree_status_t iree_hal_xrt_buffer_wrap(
iree_hal_buffer_usage_t allowed_usage, iree_device_size_t allocation_size,
iree_device_size_t byte_offset, iree_device_size_t byte_length,
iree_hal_buffer_release_callback_t release_callback,
iree_hal_buffer_t** out_buffer) {
IREE_ASSERT_ARGUMENT(allocator);
iree_allocator_t host_allocator, iree_hal_buffer_t** out_buffer) {
IREE_ASSERT_ARGUMENT(out_buffer);
IREE_TRACE_ZONE_BEGIN(z0);

iree_allocator_t host_allocator =
iree_hal_allocator_host_allocator(allocator);
iree_hal_xrt_buffer_t* buffer = nullptr;
IREE_RETURN_AND_END_ZONE_IF_ERROR(
z0,
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/iree-amd-aie/driver/xrt/xrt_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ iree_status_t iree_hal_xrt_buffer_wrap(
iree_hal_buffer_usage_t allowed_usage, iree_device_size_t allocation_size,
iree_device_size_t byte_offset, iree_device_size_t byte_length,
iree_hal_buffer_release_callback_t release_callback,
iree_hal_buffer_t** out_buffer);
iree_allocator_t host_allocator, iree_hal_buffer_t** out_buffer);

// Returns the underlying XRT buffer handle for the given |buffer|.
xrt::bo* iree_hal_xrt_buffer_handle(const iree_hal_buffer_t* buffer);
Expand Down

0 comments on commit 62d9133

Please sign in to comment.