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

Function mapped

engine/src/core/mtp.cpp:132–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130};
131
132bool mapped(size_t bytes, void** h, void** d) {
133 if (strata::core::host_alloc_guarded(h, bytes, cudaHostAllocMapped | (peer_portable() ? cudaHostAllocPortable : 0)) != cudaSuccess) return false;
134 std::memset(*h, 0, bytes);
135 return cudaHostGetDevicePointer(d, *h, 0) == cudaSuccess;
136}
137
138strata::kernels::QsaShapes shapes_of(const ModelGeometry& g) { return qsa_shapes(g); }
139

Callers 6

loadMethod · 0.70
setup_coupledMethod · 0.70
unmapMethod · 0.70
unmapMethod · 0.50
map_rangeMethod · 0.50

Calls 3

host_alloc_guardedFunction · 0.85
peer_portableFunction · 0.70
cudaHostGetDevicePointerFunction · 0.50

Tested by 1

unmapMethod · 0.40