Namespace Library

namespace khivalibrary

Typedefs

typedef khiva_backend khiva::libraryBackend

Enums

enum khiva::librarykhiva_backend

Values:

khiva::libraryKHIVA_BACKEND_DEFAULT = af::Backend::AF_BACKEND_DEFAULT

Default backend order: OpenCL -> CUDA -> CPU.

khiva::libraryKHIVA_BACKEND_CPU = af::Backend::AF_BACKEND_CPU

CPU a.k.a sequential algorithms.

khiva::libraryKHIVA_BACKEND_CUDA = af::Backend::AF_BACKEND_CUDA

CUDA Compute Backend.

khiva::libraryKHIVA_BACKEND_OPENCL = af::Backend::AF_BACKEND_OPENCL

OpenCL Compute Backend.

Functions

void khiva::librarybackendInfo()

Get the backend info.

void khiva::librarysetBackend(khiva::library::Backend be)

Set the backend.

Parameters
  • be: The desired backend.

khiva::library::Backend khiva::librarygetBackend()

Get the active backend.

Return
khiva::library::Backend The active backend.

int khiva::librarygetBackends()

Get the available backends.

Return
int The available backends.

void khiva::librarysetDevice(int device)

Set the device.

Parameters
  • device: The desired device.

int khiva::librarygetDevice()

Get the active device.

Return
int The active device.

int khiva::librarygetDeviceCount()

Get the device count.

Return
int The device count.