mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

intel-fpga-initcontainer installs OPAE and OpenCL tools into /opt/intel/fpga-sw directory. Used fpgaconf-wrapper, aocl-wrapper and packager tools by CRI hook to program OPAE and OpenCL bitstreams. Added support for OpenCL bitstreams: the hook tries to find either OPAE or OpenCL bitstream suitable for requested region and AFU and programs it using OPAE or OpenCL tools. Fixes #71
35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
# 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:
|
|
|
|
- [FPGA device plugin](../fpga_plugin/README.md)
|
|
- [FPGA admission controller webhook](../fpga_admissionwebhook/README.md)
|
|
- [FPGA prestart CRI-O hook](README.md) (this module)
|
|
|
|
### 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
|
|
```
|
|
|