MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RoundedBytes

Function RoundedBytes

tensorflow/core/common_runtime/gpu_memory_planner.h:21–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19const SizeMap kSmallSizeMap;
20
21inline size_t RoundedBytes(size_t bytes, size_t alignment) {
22 return alignment * ((bytes + alignment - 1) / alignment);
23}
24}
25
26class GPUAllocBlock {

Callers 9

BFCAllocatorMethod · 0.70
ExtendMethod · 0.70
AllocateRawInternalMethod · 0.70
InitMethod · 0.70
SmallBinMethod · 0.70
BufferMethod · 0.70
TotalMemMethod · 0.70
FreeEmptyMemoryMethod · 0.50
TestForceAllowGrowthMethod · 0.50

Calls

no outgoing calls

Tested by 1

TestForceAllowGrowthMethod · 0.40