Skip to content

Commit 62db3b3

Browse files
bmass02copybara-github
authored andcommitted
Add new SparseCore offloading ContextType.
PiperOrigin-RevId: 840536042
1 parent 0551fc5 commit 62db3b3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tsl/profiler/lib/context_types.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const char* GetContextTypeString(ContextType context_type) {
5252
return "threadpool_event";
5353
case ContextType::kJaxServingExecutor:
5454
return "jax_serving";
55+
case ContextType::kScOffload:
56+
return "sparsecore_offload";
5557
}
5658
}
5759

tsl/profiler/lib/context_types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ enum class ContextType : int {
3939
kPjrtLibraryCall,
4040
kThreadpoolEvent,
4141
kJaxServingExecutor,
42-
kLastContextType = ContextType::kJaxServingExecutor,
42+
kScOffload,
43+
kLastContextType = ContextType::kScOffload,
4344
};
4445

4546
// In XFlow we encode context type as flow category as 6 bits.

0 commit comments

Comments
 (0)