Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
CUDAUtils.h File Reference

Common CUDA utilities. More...

Go to the source code of this file.

Data Structures

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

Namespaces

namespace  open3d
namespace  open3d::core
namespace  open3d::core::cuda

Macros

#define OPEN3D_FORCE_INLINE   inline
#define OPEN3D_HOST_DEVICE
#define OPEN3D_DEVICE
#define OPEN3D_ASSERT_HOST_DEVICE_LAMBDA(type)
#define OPEN3D_CUDA_CHECK(err)
#define OPEN3D_GET_LAST_CUDA_ERROR(message)
#define CUDA_CALL(cuda_function, ...)

Functions

int open3d::core::cuda::DeviceCount ()
bool open3d::core::cuda::IsAvailable ()
void open3d::core::cuda::ReleaseCache ()
 Releases CUDA memory manager cache. This is typically used for debugging.
void open3d::core::cuda::Synchronize ()
void open3d::core::cuda::Synchronize (const Device &device)
void open3d::core::cuda::AssertCUDADeviceAvailable (int device_id)
void open3d::core::cuda::AssertCUDADeviceAvailable (const Device &device)
bool open3d::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

Macro Definition Documentation

◆ CUDA_CALL

#define CUDA_CALL ( cuda_function,
... )
Value:
open3d::utility::LogError( \
"Not built with CUDA, cannot call " #cuda_function);

◆ OPEN3D_ASSERT_HOST_DEVICE_LAMBDA

#define OPEN3D_ASSERT_HOST_DEVICE_LAMBDA ( type)

◆ OPEN3D_CUDA_CHECK

#define OPEN3D_CUDA_CHECK ( err)

◆ OPEN3D_DEVICE

#define OPEN3D_DEVICE

◆ OPEN3D_FORCE_INLINE

#define OPEN3D_FORCE_INLINE   inline

◆ OPEN3D_GET_LAST_CUDA_ERROR

#define OPEN3D_GET_LAST_CUDA_ERROR ( message)

◆ OPEN3D_HOST_DEVICE

#define OPEN3D_HOST_DEVICE