MCPcopy Create free account
hub / github.com/Niko1221/Strata / alloc_prop

Function alloc_prop

engine/src/core/vmm.cpp:180–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 (void) hipGetLastError();
179}
180hipMemAllocationProp alloc_prop(int dev) {
181 hipMemAllocationProp p{};
182 p.type = hipMemAllocationTypePinned;
183 p.requestedHandleType = hipMemHandleTypeNone;
184 p.location.type = hipMemLocationTypeDevice;
185 p.location.id = dev;
186 return p;
187}
188const Api& api() {
189 static Api& a = *new Api; // never destroyed: the K/V pools and the cache release their chunks from static destructors
190 static std::once_flag once;

Callers 2

vmm.cppFile · 0.85
vmm_chunk_newFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected