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
6namespace MR
7{
8
9namespace 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
17MRCUDA_API bool isCudaAvailable( int* driverVersion = nullptr, int* runtimeVersion = nullptr, int* computeMajor = nullptr, int* computeMinor = nullptr );
18
19// Returns available GPU memory in bytes
20MRCUDA_API size_t getCudaAvailableMemory();
21
22} //namespace Cuda
23
24} //namespace MR
MRCUDA_API bool isCudaAvailable(int *driverVersion=nullptr, int *runtimeVersion=nullptr, int *computeMajor=nullptr, int *computeMinor=nullptr)
MRCUDA_API size_t getCudaAvailableMemory()
Definition MRCameraOrientationPlugin.h:8