Skip to content

Commit

Permalink
Fix the field used to calculate struct size.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 617928528
  • Loading branch information
jyingl3 authored and tensorflower-gardener committed Apr 15, 2024
1 parent e9d4609 commit 930a3e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/xla/xla/pjrt/c/pjrt_c_api_profiler_extension.h
Expand Up @@ -26,7 +26,7 @@ limitations under the License.
extern "C" {
#endif

#define PJRT_API_PROFILER_EXTENSION_VERSION 0
#define PJRT_API_PROFILER_EXTENSION_VERSION 1

typedef struct PJRT_Profiler_Extension {
size_t struct_size;
Expand All @@ -37,7 +37,7 @@ typedef struct PJRT_Profiler_Extension {
// valid only when used as an args extension
int64_t traceme_context_id;
} PJRT_Profiler_Extension;
PJRT_DEFINE_STRUCT_TRAITS(PJRT_Profiler_Extension, profiler_api);
PJRT_DEFINE_STRUCT_TRAITS(PJRT_Profiler_Extension, traceme_context_id);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 930a3e0

Please sign in to comment.