intel-device-plugins-for-ku.../cmd/fpga_crihook
Ed Bartosh 44fd8aef54 fpga_crihook: use -s fpgaconf option
Different versions of OPAE tool fpgaconf use different command line
options to specify socket number. Latest version uses -S, which CRI-O
hook used so far.

However, fpgaconf in initcontainer comes from older OPAE version, which
uses -s option for the same purpose. This caused fpgaconf and CRI-O hook
to fail with "Invalid cmdline options".

Used 'fpgaconf-wrapper -s' in the CRI-O hook to fix this.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2018-09-05 15:33:42 +03:00
..
testdata fpga_crihook: use tools installed by initcontainer 2018-09-04 17:18:36 +03:00
main_test.go fpga_crihook: use tools installed by initcontainer 2018-09-04 17:18:36 +03:00
main.go fpga_crihook: use -s fpgaconf option 2018-09-05 15:33:42 +03:00
README.md fpga_crihook: use tools installed by initcontainer 2018-09-04 17:18:36 +03:00

Build and set up Intel FPGA prestart CRI-O hook

Dependencies

You must install and set up the following FPGA plugin modules for correct operation:

Get source code:

$ mkdir -p $GOPATH/src/github.com/intel/
$ cd $GOPATH/src/github.com/intel/
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes.git

Build CRI-O hook:

$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
$ make fpga_crihook

Download 'Acceleration Stack for Runtime' tarball

Download a10_gx_pac_ias_1_1_pv_rte_installer.tar.gz from https://www.intel.com/content/www/us/en/programmable/solutions/acceleration-hub/downloads.html into $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/deployments/fpga_plugin directory

Build init container that contains CRI hook and all its dependencies:

$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes/deployments/fpga_plugin
$ ./build-initcontainer-image.sh