acc.h Source File#
|
Runtime Library v0.30
Mobilint SDK qb
|
acc.h
Go to the documentation of this file.
static std::unique_ptr< Accelerator > create(StatusCode &sc)
Creates an Accelerator object for executing models, using device number 0.
static std::unique_ptr< Accelerator > create(int dev_no, bool verbose, StatusCode &sc)
std::vector< CoreId > getAvailableCores() const
Retrieves a list of available NPU cores.
static std::unique_ptr< Accelerator > create(int dev_no, StatusCode &sc)
Creates an Accelerator object for a specific device.
~Accelerator()
Destroys the Accelerator object and releases resources.
MACCEL_EXPORT const std::string & getMaccelProduct()
Retrieves product information of the maccel runtime.
MACCEL_EXPORT const std::string & getMaccelVendor()
Retrieves the vendor name of the maccel runtime.
MACCEL_EXPORT const std::string & getMaccelGitVersion()
Retrieves the Git commit hash of the maccel runtime.
MACCEL_EXPORT const std::string & getMaccelVersion()
Retrieves the version of the maccel runtime.
Generated by