You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have few questions here(Each of these problems occurs in the code of officical tutorials):
Why the official examples of AIE always have warnings or problems given by the Vitis IDE 2023.02
e.g. Use of class template 'connect' requires template arguments.
Why the IDE could not find the declarations of methods(class or variables) declared in anther xx.h header file?
Everytime these scenes happen, I have to import the absolutely right header file manually. (e.g. change aie_kernels.h into ../aie_kernels.h, anyway, I didn't change the project's structure.)
As just mentioned above, after problem Use of class template 'connect' requires template arguments was raised, I attempted to declare the template type as adf::port<adf::input>oradf::port<adf::output>, the errors from IDE were all gone. But the compile failed with message no member named 'porttype' in 'adf::port<adf::direction::in>', here is the log.
In file included from /home/albre/VitisWorkspace/mm_sample/src/graph.cpp:6:
In file included from /opt/Xilinx/Vitis/2023.2/aietools/include/adf.h:16:
In file included from /opt/Xilinx/Vitis/2023.2/aietools/include/adf/new_frontend/adf.h:12:
[ERROR] /opt/Xilinx/Vitis/2023.2/aietools/include/adf/new_frontend/adf_api_impl.h:113:52: error: no member named 'porttype' in 'adf::port<adf::direction::in>'
return{ (adf::port_type)_XILINX_ADF_T::porttype, _XILINX_ADF_T::winsz, _XILINX_ADF_T::margin };
~~~~~~~~~~~~~~~^
/opt/Xilinx/Vitis/2023.2/aietools/include/adf/new_frontend/adf.h:294:109: note: in instantiation of function template specialization 'adf::api_impl::connectTemplateParam<adf::port<adf::direction::in>>' requested here
adf::port<adf::input>& portR) { api_impl::connectPorts(impl, portL.impl, portR.impl, api_impl::connectTemplateParam<_XILINX_ADF_L>(), api_impl::connectTemplateParam<_XILINX_ADF_R>()); }
^
/home/albre/VitisWorkspace/mm_sample/src/graph.h:28:42: note: in instantiation of member function 'adf::connect<adf::port<adf::direction::in>, adf::port<adf::direction::in>>::connect' requested here
connect<port<input>,port<input>> float_ina(ina, k.in[0]);
^
/home/albre/VitisWorkspace/mm_sample/src/graph.h:91:5: note: in instantiation of member function 'MatMultFloatGraph<25, 0>::MatMultFloatGraph' requested here
TopGraph()
^
I just begin to learn about the ACAP platform and not so familiar with the Vitis environment. Could anyone help? Thanks a million!
The text was updated successfully, but these errors were encountered:
Here is an official example of matrix-multiply in AIE, the code below is the
graph.h
file.I have few questions here(Each of these problems occurs in the code of officical tutorials):
Vitis IDE 2023.02
Use of class template 'connect' requires template arguments.
xx.h
header file?absolutely right
header file manually. (e.g. changeaie_kernels.h
into../aie_kernels.h
, anyway, I didn't change the project's structure.)Use of class template 'connect' requires template arguments
was raised, I attempted to declare the template type asadf::port<adf::input>
oradf::port<adf::output>
, the errors from IDE were all gone. But the compile failed with messageno member named 'porttype' in 'adf::port<adf::direction::in>'
, here is the log.I just begin to learn about the ACAP platform and not so familiar with the Vitis environment. Could anyone help? Thanks a million!
The text was updated successfully, but these errors were encountered: