Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ padding
Method
padding
src/core/test/static_mem_alloc.cpp:67–67 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
65
std::unique_ptr<cg::StaticMemAlloc> m_allocator;
66
67
size_t padding() const { return GetParam().padding; }
68
69
size_t align(size_t addr) const {
70
return get_aligned_power2(addr, GetParam().align);
Callers
3
format_and_print
Method · 0.80
SetUp
Method · 0.80
run_static_mem_alloc_on_comp_node
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected