MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / alloc

Method alloc

Src/Base/AMReX_SArena.cpp:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <AMReX_GpuDevice.H>
3
4void*
5amrex::SArena::alloc (std::size_t sz)
6{
7 void* pt = The_Arena()->alloc(sz);
8 m_profiler.profile_alloc(pt, sz);
9 return pt;
10}
11
12void
13amrex::SArena::free (void* pt)

Callers

nothing calls this directly

Calls 2

The_ArenaFunction · 0.85
profile_allocMethod · 0.80

Tested by

no test coverage detected