MeshLib Documentation
Loading...
Searching...
No Matches
MRCudaBasic.h
Go to the documentation of this file.
1
#pragma once
2
#include <cstddef>
3
4
#include "exports.h"
5
6
namespace
MR
7
{
8
9
namespace
Cuda
10
{
11
12
// Returns true if Cuda is present on this GPU
13
// optional out maximum driver supported version
14
// optional out current runtime version
15
// optional out compute capability major version
16
// optional out compute capability minor version
17
MRCUDA_API
bool
isCudaAvailable
(
int
* driverVersion =
nullptr
,
int
* runtimeVersion =
nullptr
,
int
* computeMajor =
nullptr
,
int
* computeMinor =
nullptr
);
18
19
// Returns available GPU memory in bytes
20
MRCUDA_API
size_t
getCudaAvailableMemory
();
21
22
}
//namespace Cuda
23
24
}
//namespace MR
MR::Cuda::isCudaAvailable
MRCUDA_API bool isCudaAvailable(int *driverVersion=nullptr, int *runtimeVersion=nullptr, int *computeMajor=nullptr, int *computeMinor=nullptr)
MR::Cuda::getCudaAvailableMemory
MRCUDA_API size_t getCudaAvailableMemory()
MR
Definition
MRCameraOrientationPlugin.h:8
MeshLib
source
MRCuda
MRCudaBasic.h
Generated by
1.11.0