Added GPU+FPGA Accelerated Application Example
Compare changes
+ 237
− 16
@@ -226,11 +226,7 @@ Number of devices: 2
@@ -226,11 +226,7 @@ Number of devices: 2
The two main approaches to building FPGA accelerated applications using Xilinx platform and HLS are **XRT** and **OpenCL**.
To simplify the build process we define two environment variables `IT4I_PLATFORM` and `IT4I_BUILD_MODE`.
The first `IT4I_PLATFORM` denotes specific accelerator hardware such as `Alveo u250` or `Alveo u280`
@@ -278,13 +274,45 @@ The `IT4I_BUILD_MODE` is used to specify build type (`hw`, `hw_emu` and `sw_emu`
@@ -278,13 +274,45 @@ The `IT4I_BUILD_MODE` is used to specify build type (`hw`, `hw_emu` and `sw_emu`
- `sw_emu` compiles kernels only for emulation (doesn't require accelerator and allows much faster build)
@@ -417,7 +445,7 @@ $ v++ -l -t $IT4I_BUILD_MODE --platform $IT4I_PLATFORM vadd.xo -o vadd.xclbin
@@ -417,7 +445,7 @@ $ v++ -l -t $IT4I_BUILD_MODE --platform $IT4I_PLATFORM vadd.xo -o vadd.xclbin
With both host application and kernel binary at hand the application (in emulation mode) can be launched as
@@ -425,6 +453,12 @@ With both host application and kernel binary at hand the application (in emulati
@@ -425,6 +453,12 @@ With both host application and kernel binary at hand the application (in emulati
@@ -617,7 +651,7 @@ $ v++ -p vadd.link.xclbin -t $IT4I_BUILD_MODE --platform $IT4I_PLATFORM -o vadd.
@@ -617,7 +651,7 @@ $ v++ -p vadd.link.xclbin -t $IT4I_BUILD_MODE --platform $IT4I_PLATFORM -o vadd.
With both host application and kernel binary at hand the application (in emulation mode) can be launched as
@@ -625,23 +659,210 @@ With both host application and kernel binary at hand the application (in emulati
@@ -625,23 +659,210 @@ With both host application and kernel binary at hand the application (in emulati
So far we have assumed software emulation (`sw_emu`), however the same steps can be used to build application for real hardware.