Skip to content

Commit ecf4f66

Browse files
committed
Remove work-around used for 2025.2
1 parent ac20889 commit ecf4f66

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/ATen/native/xpu/mkl/BatchLinearAlgebra.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@ void error_handle(
4444
auto errs = be.exceptions();
4545
auto ids = be.ids();
4646

47-
if (!errs.size()) {
48-
TORCH_WARN(
49-
"Caught lapack exception:\nWhat: ", be.what(), "\nInfo: ", be.info());
50-
for (auto& i : ids) {
51-
TORCH_WARN("Error in matrix #", i);
52-
info_cpu[i] = 1;
53-
}
54-
return;
55-
}
56-
5747
for (size_t i = 0; i < errs.size(); ++i) {
5848
try {
5949
std::rethrow_exception(errs[i]);
@@ -65,10 +55,10 @@ void error_handle(
6555
e.info(),
6656
"\nDetail: ",
6757
e.detail());
68-
info_cpu[i] = e.info();
58+
info_cpu[ids[i]] = e.info();
6959
} catch (const sycl::exception& e) {
7060
TORCH_WARN("Caught SYCL exception:\nWhat: ", e.what(), "\nInfo: -1");
71-
info_cpu[i] = -1;
61+
info_cpu[ids[i]] = -1;
7262
}
7363
}
7464
}

0 commit comments

Comments
 (0)