Add KernelLaunch and KernelExecute event types.
PiperOrigin-RevId: 291844655 Change-Id: I002aa2a71e35b60a502394a1a5da13ea73290a78
This commit is contained in:
parent
05445032af
commit
d641d29ca5
@ -77,6 +77,9 @@ const HostEventTypeMap& GetHostEventTypeMap() {
|
||||
{"WhileOp-StartBody", kWhileOpStartBody},
|
||||
{"ForOp", kForOp},
|
||||
{"PartitionedCallOp", kPartitionedCallOp},
|
||||
// GPU related.
|
||||
{"KernelLaunch", kKernelLaunch},
|
||||
{"KernelExecute", kKernelExecute},
|
||||
});
|
||||
DCHECK_EQ(host_event_type_map->size(), kNumHostEventTypes);
|
||||
return *host_event_type_map;
|
||||
|
@ -69,7 +69,10 @@ enum HostEventType {
|
||||
kWhileOpStartBody,
|
||||
kForOp,
|
||||
kPartitionedCallOp,
|
||||
kLastHostEventType = kPartitionedCallOp,
|
||||
// GPU related.
|
||||
kKernelLaunch,
|
||||
kKernelExecute,
|
||||
kLastHostEventType = kKernelExecute,
|
||||
};
|
||||
|
||||
enum StatType {
|
||||
|
Loading…
Reference in New Issue
Block a user