Skip to content

Commit

Permalink
Remove the check for PJRT C API version in GetCompiledMemoryStats.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 658130638
  • Loading branch information
Jieying Luo authored and copybara-github committed Jul 31, 2024
1 parent 8a5332d commit a3bc38a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions xla/pjrt/c/pjrt_c_api_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -994,13 +994,6 @@ absl::Span<PJRT_DeviceDescription* const> DeviceDescriptions(

absl::StatusOr<xla::CompiledMemoryStats> GetCompiledMemoryStats(
const PJRT_Api* api, PJRT_Executable* executable) {
// TODO(jieying): To be removed after 03/2024.
if (api->pjrt_api_version.major_version == 0 &&
api->pjrt_api_version.minor_version < 40) {
return absl::UnimplementedError(
"GetCompiledMemoryStats requires a plugin with PJRT C API version >= "
"0.40");
}
PJRT_Executable_GetCompiledMemoryStats_Args args;
args.struct_size = PJRT_Executable_GetCompiledMemoryStats_Args_STRUCT_SIZE;
args.extension_start = nullptr;
Expand Down

0 comments on commit a3bc38a

Please sign in to comment.