Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
StartMemoryTracing
Method · 0.80
operator new
Function · 0.80
Alloc2
Method · 0.80
PardisoInverseTM
Method · 0.80
vvector.hpp
File · 0.80
AssembleLaplace
Function · 0.80
python_solve.cpp
File · 0.80
FlatCholeskyFactors
Method · 0.80
Calls
no outgoing calls
Tested by
1
AssembleLaplace
Function · 0.64