yacx-YetAnotherCudaExecutor  0.6.2
wrapper to easily compile and execute cuda kernels
Static Public Member Functions | List of all members
yacx::Devices Class Reference
Inheritance diagram for yacx::Devices:
yacx::JNIHandle

Static Public Member Functions

static DevicefindDevice ()
 
static DevicefindDevice (std::string name)
 
static DevicefindDeviceByUUID (std::string uuid)
 
static std::vector< Device > & findDevices ()
 
static std::vector< Device * > findDevices (std::function< bool(Device &)> con)
 

Detailed Description

Examples
example_matrix_multiply.cpp, example_program.cpp, and example_saxpy.cpp.

Member Function Documentation

◆ findDevice() [1/2]

Device & Devices::findDevice ( )
static
Returns
returns a Device with the first CUDA capable device it finds

◆ findDevice() [2/2]

Device & Devices::findDevice ( std::string  name)
static
Returns
returns a Device if a CUDA capable device with the identifier is available
Parameters
nameName of the cuda device, e.g.'Tesla K20c'

◆ findDeviceByUUID()

Device & Devices::findDeviceByUUID ( std::string  uuid)
static
Returns
returns a Device if a CUDA capable device with the passed 16-byte UUID as hexadecimal string
Parameters
uuidUUID of the cuda device

◆ findDevices() [1/2]

std::vector< Device > & Devices::findDevices ( )
static
Returns
vector with all CUDA-capable devices

◆ findDevices() [2/2]

std::vector< Device * > Devices::findDevices ( std::function< bool(Device &)>  con)
static

filters the devices satisfying passed condition

Parameters
concondition for devices e.g.'[](Device& d){return d.total_memory() >= 1024;}'
Returns
list of devices satisfying passed condition

The documentation for this class was generated from the following files: