Apache Singa
A General Distributed Deep Learning Library
|
This class queries all available calculating devices on a given machine grouped according to manufacturer or device drivers. More...
#include <device.h>
Static Public Member Functions | |
static std::shared_ptr< Device > | GetDefaultDevice () |
Return the default host device. | |
This class queries all available calculating devices on a given machine grouped according to manufacturer or device drivers.
All methods should be static. If CUDA or OPENCL are not enabled, then the respective related methods should return something that indicates their absence (for example, 0 devices); however they should always be available regardless of compile-time switches.