取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Observer
Observer
225 次查看
注册日期: ‎05-20-2020

Vitis Accel Example 开发添加新的cpp文件,该如何在IDE里编译链接呢?

转到解答

首先new application 选择了模板Vitis Accel Example(https://github.com/Xilinx/Vitis_Accel_Examples/tree/master/cpp_kernels/array_partition)代码进行创建初始化工程,然后新建了vadd.cpp,修改了makefile相应的配置文件和link.ini compile.ini,但是点击build的时候,makefile又复原了,没有生成新的vadd.xo

控制台输出的build 的日志如下:

/Vitis/2019.2/bin/v++ --target sw_emu --link --config common-config.ini --config matmul-link.ini -o"matmul.xclbin" matmul.build/matmul.xo matmul.build/matmul_partition.xo

 应该如何对该工程进行编译和链接?

485f27f372b97188443752cda2e7d69.png
0 项奖励
1 个已接受解答

已接受的解答
Highlighted
Xilinx Employee
Xilinx Employee
155 次查看
注册日期: ‎03-24-2010

回复: Vitis Accel Example 开发添加新的cpp文件,该如何在IDE里编译链接呢?

转到解答

Vitis IDE 中的makefile是自动生成的,不能直接修改

可以参考UG1393,在添加kernel代码后,“Add Hardware Function” 将它添加为加速kernel。可以在UG1393搜索“Add Hardware Function”查看详细信息

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 条回复1
Highlighted
Xilinx Employee
Xilinx Employee
156 次查看
注册日期: ‎03-24-2010

回复: Vitis Accel Example 开发添加新的cpp文件,该如何在IDE里编译链接呢?

转到解答

Vitis IDE 中的makefile是自动生成的,不能直接修改

可以参考UG1393,在添加kernel代码后,“Add Hardware Function” 将它添加为加速kernel。可以在UG1393搜索“Add Hardware Function”查看详细信息

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

在原帖中查看解决方案