Add clarity to "Op Name" for device memory allocation that was preallocated and unused.
PiperOrigin-RevId: 350867777 Change-Id: I81ef32c3f11869ce16e9e4cbfebfc2454f208e62
This commit is contained in:
parent
987e514e22
commit
5975aae33f
@ -320,10 +320,10 @@ void InsertSpecialAllocations(int64 unmapped_allocation_bytes, int64 step_id,
|
|||||||
if (unmapped_allocation_bytes > 0) {
|
if (unmapped_allocation_bytes > 0) {
|
||||||
MemoryActivityMetadata* special_allocation =
|
MemoryActivityMetadata* special_allocation =
|
||||||
memory_profile->add_special_allocations();
|
memory_profile->add_special_allocations();
|
||||||
FillActivityMetadata(
|
FillActivityMetadata(HostEventType::kMemoryAllocation,
|
||||||
HostEventType::kMemoryAllocation,
|
{unmapped_allocation_bytes, unmapped_allocation_bytes,
|
||||||
{unmapped_allocation_bytes, unmapped_allocation_bytes, 0,
|
0, "unused preallocated device memory", step_id,
|
||||||
"preallocated/unknown", step_id, "persist/dynamic", 0, "unknown"},
|
"persist/dynamic", 0, "unknown"},
|
||||||
special_allocation);
|
special_allocation);
|
||||||
active_allocs->push_back({--index, special_allocation});
|
active_allocs->push_back({--index, special_allocation});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user