ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CUDAUtils.h File Reference

Common CUDA utilities. More...

#include <Logging.h>
#include "cloudViewer/core/Device.h"
Include dependency graph for CUDAUtils.h:

Go to the source code of this file.

Classes

class  cloudViewer::core::CUDAScopedDevice
 When CUDA is not enabled, this is a dummy class. More...
 

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 
 cloudViewer::core
 
 cloudViewer::core::cuda
 

Macros

#define CLOUDVIEWER_FORCE_INLINE   inline
 
#define CLOUDVIEWER_HOST_DEVICE
 
#define CLOUDVIEWER_DEVICE
 
#define CLOUDVIEWER_ASSERT_HOST_DEVICE_LAMBDA(type)
 
#define CLOUDVIEWER_CUDA_CHECK(err)
 
#define CLOUDVIEWER_GET_LAST_CUDA_ERROR(message)
 
#define CUDA_CALL(cuda_function, ...)
 

Functions

int cloudViewer::core::cuda::DeviceCount ()
 
bool cloudViewer::core::cuda::IsAvailable ()
 
void cloudViewer::core::cuda::ReleaseCache ()
 Releases CUDA memory manager cache. This is typically used for debugging. More...
 
void cloudViewer::core::cuda::Synchronize ()
 
void cloudViewer::core::cuda::Synchronize (const Device &device)
 
void cloudViewer::core::cuda::AssertCUDADeviceAvailable (int device_id)
 
void cloudViewer::core::cuda::AssertCUDADeviceAvailable (const Device &device)
 
bool cloudViewer::core::cuda::SupportsMemoryPools (const Device &device)
 

Detailed Description

Common CUDA utilities.

CUDAUtils.h may be included from CPU-only code. Use #ifdef CUDACC to mark conditional compilation

Definition in file CUDAUtils.h.

Macro Definition Documentation

◆ CLOUDVIEWER_ASSERT_HOST_DEVICE_LAMBDA

#define CLOUDVIEWER_ASSERT_HOST_DEVICE_LAMBDA (   type)

Definition at line 46 of file CUDAUtils.h.

◆ CLOUDVIEWER_CUDA_CHECK

#define CLOUDVIEWER_CUDA_CHECK (   err)

Definition at line 47 of file CUDAUtils.h.

◆ CLOUDVIEWER_DEVICE

#define CLOUDVIEWER_DEVICE

Definition at line 45 of file CUDAUtils.h.

◆ CLOUDVIEWER_FORCE_INLINE

#define CLOUDVIEWER_FORCE_INLINE   inline

Definition at line 43 of file CUDAUtils.h.

◆ CLOUDVIEWER_GET_LAST_CUDA_ERROR

#define CLOUDVIEWER_GET_LAST_CUDA_ERROR (   message)

Definition at line 48 of file CUDAUtils.h.

◆ CLOUDVIEWER_HOST_DEVICE

#define CLOUDVIEWER_HOST_DEVICE

Definition at line 44 of file CUDAUtils.h.

◆ CUDA_CALL

#define CUDA_CALL (   cuda_function,
  ... 
)
Value:
"Not built with CUDA, cannot call " #cuda_function);
#define LogError(...)
Definition: Logging.h:60

Definition at line 49 of file CUDAUtils.h.