VaneDB 0.1.0
Embeddable vector database for edge AI
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
vanedb::gpu Namespace Reference

Enumerations

enum class  Backend { NONE , METAL , CUDA }
 

Functions

Backend available ()
 
bool use_gpu (size_t n, size_t d)
 

Variables

constexpr size_t GPU_THRESHOLD = 50000
 

Enumeration Type Documentation

◆ Backend

enum class vanedb::gpu::Backend
strong
Enumerator
NONE 
METAL 
CUDA 

Definition at line 19 of file gpu_distance.h.

Function Documentation

◆ available()

Backend vanedb::gpu::available ( )
inline

Definition at line 21 of file gpu_distance.h.

References CUDA, METAL, and NONE.

Referenced by use_gpu().

◆ use_gpu()

bool vanedb::gpu::use_gpu ( size_t  n,
size_t  d 
)
inline

Definition at line 32 of file gpu_distance.h.

References available(), GPU_THRESHOLD, and NONE.

Variable Documentation

◆ GPU_THRESHOLD

constexpr size_t vanedb::gpu::GPU_THRESHOLD = 50000
constexpr

Definition at line 31 of file gpu_distance.h.

Referenced by use_gpu().