Skip to content

Commit

Permalink
Merge branch 'main' into makslevental/windows-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Aug 24, 2024
2 parents 767c9c4 + 652d648 commit 3fff7a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions build_tools/ci/cpu_comparison/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def __init__(
xrt_info,
flags=re.MULTILINE | re.IGNORECASE,
)
self.xdna_datetime = None
if xdna_datetime:
self.xdna_datetime = int(xdna_datetime[0])

Expand Down
7 changes: 5 additions & 2 deletions runtime/src/iree-amd-aie/driver/xrt/native_executable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,11 @@ static void iree_hal_xrt_native_executable_destroy(

for (iree_host_size_t i = 0; i < executable->entry_point_count; ++i) {
try {
// delete executable->entry_points[i].kernel;
// delete executable->entry_points[i].instr;
#ifndef _WIN32
// causes segmentation fault on windows
delete executable->entry_points[i].kernel;
delete executable->entry_points[i].instr;
#endif
// TODO(jornt): deleting the xclbin here will result in a corrupted size
// error in XRT. It looks like the xclbin needs to stay alive while the
// device is alive if it has been registered.
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/iree-amd-aie/driver/xrt/xrt_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ iree_status_t iree_hal_xrt_driver_create_internal(
return iree_make_status(IREE_STATUS_FAILED_PRECONDITION,
"No XRT devices found");
}
} catch (std::runtime_error& e) {
} catch (std::exception& e) {
return iree_make_status(IREE_STATUS_INTERNAL,
"xrt::system::enumerate_devices failed: %s",
e.what());
Expand All @@ -94,7 +94,7 @@ iree_status_t iree_hal_xrt_driver_create_internal(
try {
global_device = xrt::device(0);
driver->device = &global_device;
} catch (std::runtime_error& e) {
} catch (std::exception& e) {
return iree_make_status(IREE_STATUS_INTERNAL, "xrt::device(0) failed: %s",
e.what());
}
Expand Down

0 comments on commit 3fff7a2

Please sign in to comment.