Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Aug 29, 2024
1 parent 5c7704e commit 627f7e1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
strategy:
fail-fast: false
matrix:
runs-on: [linux-phoenix-20240819]
runs-on: [linux-phoenix]
runs-on: ${{ matrix.runs-on }}
env:
XILINXD_LICENSE_FILE: /opt/xilinx/Xilinx.lic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,10 @@ static LogicalResult generateCoreElfFiles(
if (verbose) flags.emplace_back("-v");
// we run clang (ie cc) so that libc, libm, crt0/1 paths are injected
// automatically into the ld.lld invocation
return runTool((peanoDir / "bin" / "clang").string(), flags, verbose);
if (failed(
runTool((peanoDir / "bin" / "clang").string(), flags, verbose))) {
return failure();
}
}
return success();
}
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 627f7e1

Please sign in to comment.