取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
lpc
Contributor
Contributor
187 次查看
注册日期: ‎02-28-2020

hls核+DPU核无法连用的问题

EXE: /home/root/two_kernel_src/dpu_prj.exe
[XRT] WARNING: Host buffer (0) has no bank assignment and is not used as kernel argument before first enqueue operation; allocating in default memory bank '1'.
finished enqueueing task
[XRT] WARNING: Argument '0' of kernel 'cvtcolor_bgr2rgb' is allocated in memory bank 'HPC0'; compute unit 'cvtcolor_bgr2rgb_1' cannot be used with this argument and is ignored.
[XRT] ERROR: kernel 'cvtcolor_bgr2rgb' has no compute units to support required argument connectivity.
ERROR: clSetKernelArg() for kernel "cvtcolor_bgr2rgb", argument index 0.
../src/main.cpp:66 Error calling err = krnl1.setArg(0, imageToDevicergb), error code is: -4

 

错误信息如上,我想知道我这,用了vision库中的通道转换,尺寸调整还有dpu.但是出现了如上的错误。请问这个是啥原因。。

Screenshot from 2021-04-05 17-07-08.png
0 项奖励
3 回复数
wenchen
Moderator
Moderator
136 次查看
注册日期: ‎05-27-2018

Hi @lpc 

OpenCL的代码可能写的有点问题,imageToDevicergb 这个缓存变量, cl::buffer 有正确创建吗?

ERROR: clSetKernelArg() for kernel "cvtcolor_bgr2rgb", argument index 0.
../src/main.cpp:66 Error calling err = krnl1.setArg(0, imageToDevicergb), error code is: -4

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.


**~ Got a minute? Answer our Vitis HLS survey here! ~**


-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
lpc
Contributor
Contributor
115 次查看
注册日期: ‎02-28-2020

 [XRT] WARNING: Host buffer (0) has no bank assignment and is not used as kernel argument before first enqueue operation; allocating in default memory bank '1'. finished enqueueing task

[XRT] WARNING: Argument '0' of kernel 'cvtcolor_bgr2rgb' is allocated in memory bank 'HPC0'; compute unit 'cvtcolor_bgr2rgb_1' cannot be used with this argument and is ignored.

您好我认为问题应该是这两条导致的,我查看了opencl的代码,那块没有问题。

0 项奖励
wenchen
Moderator
Moderator
105 次查看
注册日期: ‎05-27-2018

Hi @lpc 

如果你确定Host 端的代码没有问题,之前有一个类似的问题是更新了软件版本后就解决的,你的Vitis Vision library代码版本要和Vitis 工具版本严格对应。

Vitis 2019.2 - 2020.2 XRT 的行为有一个比较大的升级, 所以建议你升级版本

Wen

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.


**~ Got a minute? Answer our Vitis HLS survey here! ~**


-------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励