Xilinx/Vitis_Accel_Examples の
hello_world サンプルを今まで作ってきたUltra96V2 のプラットフォームでやってみようと思う。
hello_world サンプルは、以下のプラットフォームのサポートがあるようだ。
hello_world の図を引用する。

最初に Vitis と XRT の環境を読み込む。
source /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/settings64.sh
source /opt/xilinx/xrt/setup.sh
Xilinx/Vitis_Accel_Examples を git clone して、 hello_world ディレクトリに移動した。
cd ~/Vitis_work/
git clone https://github.com/Xilinx/Vitis_Accel_Examples.git
cd Vitis_Accel_Examples/
cd hello_world/
更にMakefile を見ると、make 方法が載っている。

Device の Platform だが、任意のディレクトリに置いておいたところ、うまく行かなかったので、Ultra96V2 のプラットフォームを作成した時のワークスペースの wksp1 の Ultra96v2_min/export に ultra96v2_min プラットフォーム・ディレクトリができているので、それを

Vitis のインストール・ディレクトリ Vitis/2019.2/ の下の platforms ディレクトリにコピーした。

これで、make を実行した。
make all TARGET=sw_emu DEVICE=ultra96v2_min HOST_ARCH=aarch64 SYSROOT=/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/Ultra96V2_Platform1/images/linux/ultra96v2_min_pkg/pfm/sysroots/aarch64-xilinx-linux/すると、作ってきたプラットフォームが non-accelerated platform と言われてしまった。。。ショック。。。
ERROR: [v++ 60-1606] The specified platform is not supported. Platform '/media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min/ultra96v2_min.xpfm' is a non-accelerated platform. By policy, non-accelerated platforms are not supported by the current tool
ERROR: [v++ 60-592] Failed to finish compilation
Makefile:95: recipe for target '_x.sw_emu.ultra96v2_min/vadd.xo' failed
make: *** [_x.sw_emu.ultra96v2_min/vadd.xo] Error 1

おかしい。。。アクセラレートできるようにプラットフォームを作ってきたはずなのだが。。。プラットフォーム違いなのか???
- 2019年11月16日 14:54 |
- Vitis
-
| トラックバック:0
-
| コメント:0