MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getCudaSafeMemoryLimit

Function getCudaSafeMemoryLimit

source/MRCuda/MRCudaBasic.cpp:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86size_t getCudaSafeMemoryLimit()
87{
88 constexpr float cMaxGpuMemoryUsage = 0.80f;
89 return size_t( (float)getCudaAvailableMemory() * cMaxGpuMemoryUsage );
90}
91
92size_t maxBufferSize( size_t availableBytes, size_t elementCount, size_t elementBytes )
93{

Callers 13

prepareMethod · 0.85
pointsToDistanceVolumeFunction · 0.85
findProjectionsMethod · 0.85
calcFromVectorMethod · 0.85
calcSelfIntersectionsMethod · 0.85
calcFromGridMethod · 0.85
calcFromGridByPartsMethod · 0.85
findProjectionsMethod · 0.85
computeDistanceMapFunction · 0.85

Calls 1

getCudaAvailableMemoryFunction · 0.85

Tested by

no test coverage detected