Driver Development Guide¶
The goal of this document is to explain how to develop a new kind of Cyborg accelerator driver.
Make sure you have installed Openstack environment using devstack before development.
Derive a new driver class¶
Imply the necessary interface, the list of interfaces is as follows:
class NewCyborgDriver(object): """Cyborg new accelerator driver. """ def discover(self): """Discover specific accelerator :return: list of cyborg.objects.driver_objects.driver_device. DriverDevice """ pass
Add the new driver map into file
[entry_points] cyborg.accelerator.driver = intel_fpga_driver = cyborg.accelerator.drivers.fpga.intel.driver:IntelFPGADriver new_driver_name = cyborg.accelerator.drivers.example.driver:NewCyborgDriver
Reinstall and Test¶
$ python setup.py develop
$ sudo systemctl restart devstack@cyborg-agent