MeshLib C++ Docs
Loading...
Searching...
No Matches
MRCudaBasic.h File Reference
#include "exports.h"
#include "MRMesh/MRMeshFwd.h"

Go to the source code of this file.

Namespaces

namespace  MR
 only for bindings generation
 
namespace  MR::Cuda
 

Functions

MRCUDA_API bool MR::Cuda::isCudaAvailable (int *driverVersion=nullptr, int *runtimeVersion=nullptr, int *computeMajor=nullptr, int *computeMinor=nullptr)
 
MRCUDA_API size_t MR::Cuda::getCudaAvailableMemory ()
 Returns available GPU memory in bytes.
 
MRCUDA_API size_t MR::Cuda::getCudaSafeMemoryLimit ()
 Returns maximum safe amount of free GPU memory that will be used for dynamic-sized buffers.
 
MRCUDA_API size_t MR::Cuda::maxBufferSize (size_t availableBytes, size_t elementCount, size_t elementBytes)
 Returns maximum buffer size in elements that can be allocated with given memory limit.
 
MRCUDA_API size_t MR::Cuda::maxBufferSizeAlignedByBlock (size_t availableBytes, const Vector2i &blockDims, size_t elementBytes)
 
MRCUDA_API size_t MR::Cuda::maxBufferSizeAlignedByBlock (size_t availableBytes, const Vector3i &blockDims, size_t elementBytes)