File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
third_party/xla/xla/pjrt/c Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ cc_library(
306
306
"@com_google_absl//absl/container:inlined_vector" ,
307
307
"@com_google_absl//absl/functional:any_invocable" ,
308
308
"@com_google_absl//absl/log" ,
309
+ "@com_google_absl//absl/log:check" ,
309
310
"@com_google_absl//absl/status" ,
310
311
"@com_google_absl//absl/status:statusor" ,
311
312
"@com_google_absl//absl/strings" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ limitations under the License.
28
28
#include " absl/container/flat_hash_map.h"
29
29
#include " absl/container/inlined_vector.h"
30
30
#include " absl/functional/any_invocable.h"
31
+ #include " absl/log/check.h"
31
32
#include " absl/log/log.h"
32
33
#include " absl/status/status.h"
33
34
#include " absl/status/statusor.h"
@@ -72,8 +73,7 @@ PJRT_ClientDeleter MakeClientDeleter(const PJRT_Api* api) {
72
73
destroy_args.extension_start = nullptr ;
73
74
destroy_args.client = client;
74
75
75
- PJRT_Error* error = api->PJRT_Client_Destroy (&destroy_args);
76
- CHECK (error == nullptr );
76
+ pjrt::LogFatalIfPjrtError (api->PJRT_Client_Destroy (&destroy_args), api);
77
77
};
78
78
}
79
79
You can’t perform that action at this time.
0 commit comments