MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Alloc

Method Alloc

ngscuda/cuda_ngstd.hpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49 template <typename T>
50 T * Alloc (size_t s)
51 {
52 char * tmp = stackptr;
53 s *= sizeof(T);
54 s = (s+255) & size_t(-256);
55 stackptr += s;
56 return reinterpret_cast<T*>(tmp);
57 }
58
59 void Free (void * ptr)
60 {

Callers 8

StartMemoryTracingMethod · 0.80
operator newFunction · 0.80
Alloc2Method · 0.80
PardisoInverseTMMethod · 0.80
vvector.hppFile · 0.80
AssembleLaplaceFunction · 0.80
python_solve.cppFile · 0.80
FlatCholeskyFactorsMethod · 0.80

Calls

no outgoing calls

Tested by 1

AssembleLaplaceFunction · 0.64