From baa44da17d6815637c8214a4bd2b42c7c3e95f9b Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Wed, 12 Mar 2025 21:18:17 -0500 Subject: [PATCH 1/2] Print module on compile error --- deps/ReactantExtra/API.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/deps/ReactantExtra/API.cpp b/deps/ReactantExtra/API.cpp index f64fd63829..b823bb1c64 100644 --- a/deps/ReactantExtra/API.cpp +++ b/deps/ReactantExtra/API.cpp @@ -840,8 +840,16 @@ ClientCompile(PjRtClient *client, MlirModule cmod, int64_t device_id, } } - auto exec = MyValueOrThrow(client->Compile(cmod_op, options)); - return exec.release(); + auto exec_err = client->Compile(cmod_op, options); + + if (!exec_err.ok()) { + std::string err_str; + llvm::raw_string_ostream err_stream(err_str); + err_stream << cmod_op << "\n"; + err_stream << exec_err.status().ToString(); + ReactantThrowError(err_stream.str().c_str()); + } + return std::move(exec_err).value().release(); } extern "C" void From f607bdd77d12e7babd1f5e12d2ff89b041a77cd5 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Wed, 12 Mar 2025 21:20:18 -0500 Subject: [PATCH 2/2] bump commit --- deps/ReactantExtra/WORKSPACE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ReactantExtra/WORKSPACE b/deps/ReactantExtra/WORKSPACE index 2f97542360..2f1f84d167 100644 --- a/deps/ReactantExtra/WORKSPACE +++ b/deps/ReactantExtra/WORKSPACE @@ -9,7 +9,7 @@ http_archive( urls = ["https://github.com/wsmoses/nsync/archive/{commit}.tar.gz".format(commit = NSYNC_COMMIT)], ) -ENZYMEXLA_COMMIT = "3896a344a95293cf198778ee0a40077edec1e313" +ENZYMEXLA_COMMIT = "aea889d4cd9780f873ddc7d2234a7e5245f9beb6" ENZYMEXLA_SHA256 = "" http_archive(