0bd8a7d9de
How to test the flow of program process manually: 1. generate the fake env by the follow command cat > ./fake_env.sh << EOL SYSINFO=cyborg/accelerator/drivers/fpga/intel/sysinfo.py UTILS=cyborg/accelerator/drivers/fpga/utils.py sed -i -e 's/^\(SYS_FPGA\) = "\(\/sys\/class\/fpga\)"$/\1 = "\/tmp\2"/g' $SYSINFO sed -i -e 's/^\(SYS_FPGA_PATH\) = "\(\/sys\/class\/fpga\)"$/\1 = "\/tmp\2"/g' $UTILS python cyborg/tests/unit/accelerator/drivers/fpga/intel/prepare_test_data.py LOG=/tmp/intel_fpga_program.log sudo echo 'echo fpgaconf \$@ '"|tee $LOG" > /usr/bin/fpgaconf sudo echo "date |tee -a $LOG" >> /usr/bin/fpgaconf sudo echo "echo 'Program intel FPGA successfully' |tee -a $LOG" >> /usr/bin/fpgaconf sudo chmod a+x /usr/bin/fpgaconf EOL chmod a+x ./fake_env.sh sudo ./fake_env.sh 2. Please use curl command as follows: curl -s -X PATCH -H "X-Auth-Token: $OS_TOKEN" -H "Content-Type: application/json"\ -d '[{ "path": "/program", "op": "replace", "value": [{ "image_uuid": "{image_uuid}" }] }]'\ http://{host_ip}:6666/v1/accelerators/deployables/{deployable_uuid}/program 3. Checke the /tmp/intel_fpga_program.log it should see the infomation as the follow exmaple: $ cat /tmp/intel_fpga_program.log fpgaconf -b 04 -d 00 -f 1 4047d422-5d2f-432c-b87f-5e1749e95ee6.bin Sat Oct 27 15:08:34 UTC 2018 Program intel FPGA successfully Change-Id: I70ff5edac65fe9e9ec1783d62c2ecd21ac5fab18 |
||
---|---|---|
cyborg | ||
devstack | ||
doc | ||
etc/cyborg | ||
playbooks/legacy/cyborg-devstack | ||
releasenotes | ||
sandbox | ||
setup | ||
tools/config | ||
.gitignore | ||
.gitreview | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
babel.cfg | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Cyborg
OpenStack Acceleration as a Service
Cyborg provides a general management framework for accelerators such as FPGA, GPU, SoCs, NVMe SSDs, CCIX caches, DPDK/SPDK, pmem and so forth.
- Free software: Apache license
- Source: https://git.openstack.org/cgit/openstack/cyborg
- Bugs: https://bugs.launchpad.net/openstack-cyborg
- Blueprints: https://blueprints.launchpad.net/openstack-cyborg
Features
- REST API for basic accelerator life cycle management
- Generic driver for common accelerator support