Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

good swsim, bad run_tapa.sh #3

Open
zhaijiaqi opened this issue Aug 30, 2024 · 2 comments
Open

good swsim, bad run_tapa.sh #3

zhaijiaqi opened this issue Aug 30, 2024 · 2 comments

Comments

@zhaijiaqi
Copy link

I successfully built the swsim, however, upon executing sh run_tapa.sh, the following errors emerged:

/usr/local/bin/tapac:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import load_entry_point
I0830 08:01:47.304 tapa.util:184] logging level set to INFO
I0830 08:01:47.304 tapa.tapac:514] running translated command: `tapa dse-floorplan --input=../src/serpens.cpp --top=Serpens --part-num=xcu280-fsvh2892-2L-e --platform=xilinx_u280_xdma_201920_3 --clock-period=3.33 --connectivity=../link_config_a24.ini --enable-synth-util --enable-hbm-binding-adjustment --max-parallel-synth-jobs=16 --read-only-args=edge_list_ptr '--read-only-args=edge_list_ch*' --read-only-args=vec_X --read-only-args=vec_Y --write-only-args=vec_Y_out --min-area-limit=0.6 --min-slr-width-limit=5000 --floorplan-output=Serpens_floorplan.tcl --output=Serpens.xo --bitstream-script=Serpens_generate_bitstream.sh`
I0830 08:01:47.305 tapa.util:184] logging level set to INFO
I0830 08:01:47.306 tapa.tapa:54] tapa version: 0.0.20240825.1
I0830 08:01:47.306 tapa.tapa:58] Python recursion limit set to 3000
I0830 08:01:47.307 tapa.steps.dse:98] 
I0830 08:01:47.307 tapa.steps.dse:99] --------------------------------------------------------------------------------
I0830 08:01:47.307 tapa.steps.dse:100] DSE preparation: synthesize each task into RTL
I0830 08:01:47.307 tapa.steps.dse:101] --------------------------------------------------------------------------------
I0830 08:01:47.307 tapa.steps.dse:102] 
I0830 08:01:47.487 tapa.steps.analyze:168] added vendor include path `/tools/Xilinx/Vitis_HLS/2023.2/include`
I0830 08:01:47.488 tapa.steps.analyze:265] Running tapacc command: /usr/bin/tapacc /root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp -top Serpens -- -std=c++17 -I /root/.local/lib/python3.8/site-packages/tapa/../../../src -isystem /tools/Xilinx/Vitis_HLS/2023.2/include -stdlib=libc++ -isystem /usr/lib/llvm-17/include/c++/v1/ -isystem /usr/include/clang/17/include/ -isystem /usr/lib/clang/17/include/
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:132:30: warning: unknown attribute 'bitwidth' ignored [-Wunknown-attributes]
  132 |   typedef int __attribute__((bitwidth(_AP_N))) DataType;
      |                              ^~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:133:24: warning: unknown attribute 'bitwidth' ignored [-Wunknown-attributes]
  133 |   int V __attribute__((bitwidth(_AP_N)));
      |                        ^~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:135:98: warning: unknown attribute 'bitwidth' ignored [-Wunknown-attributes]
  135 |                 inline __attribute__((always_inline)) ssdm_int<_AP_N, true>(int o __attribute__((bitwidth(_AP_N)))):V(o){};
      |                                                                                                  ^~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:139:35: warning: unknown attribute 'bitwidth' ignored [-Wunknown-attributes]
  139 |   typedef unsigned __attribute__((bitwidth(_AP_N))) DataType;
      |                                   ^~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:140:29: warning: unknown attribute 'bitwidth' ignored [-Wunknown-attributes]
  140 |   unsigned V __attribute__((bitwidth(_AP_N)));
      |                             ^~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:142:104: warning: unknown attribute 'bitwidth' ignored [-Wunknown-attributes]
  142 |                 inline __attribute__((always_inline)) ssdm_int<_AP_N, false>(unsigned o __attribute__((bitwidth(_AP_N)))):V(o){};
      |                                                                                                        ^~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:212:73: error: parameters cannot have __fp16 type; did you forget * ?
  212 | inline __attribute__((always_inline)) unsigned short halfToRawBits(half pf) {
      |                                                                         ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:239:44: error: function return value cannot have __fp16 type; did you forget * ?
  239 | inline __attribute__((always_inline)) half rawBitsToHalf(unsigned short pi) {
      |                                            ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:404:83: error: parameters cannot have __fp16 type; did you forget * ?
  404 |   inline __attribute__((always_inline)) __attribute__((nodebug)) ap_int_base(half op) {
      |                                                                                   ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:653:71: error: function return value cannot have __fp16 type; did you forget * ?
  653 |   inline __attribute__((always_inline)) __attribute__((nodebug)) half to_half() const { return (float)(Base::V); }
      |                                                                       ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:413:76: error: use of undeclared identifier '__builtin_bit_select'; did you mean '__builtin_rotateleft8'?
  413 |     bool is_neg = ({ __typeof__(reg.V) __Val2__ = reg.V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), BITS - 1); __Result__; });
      |                                                                            ^~~~~~~~~~~~~~~~~~~~
      |                                                                            __builtin_rotateleft8
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:413:76: note: '__builtin_rotateleft8' declared here
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:413:97: error: cannot initialize a parameter of type 'unsigned char' with an rvalue of type 'void *'
  413 |     bool is_neg = ({ __typeof__(reg.V) __Val2__ = reg.V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), BITS - 1); __Result__; });
      |                                                                                                 ^~~~~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:415:125: error: use of undeclared identifier '__builtin_bit_part_select'
  415 |     exp.V = ({ typename _ap_type::remove_const<__typeof__(reg.V)>::type __Result__ = 0; __typeof__(reg.V) __Val2__ = reg.V; __builtin_bit_part_select((void*)(&__Result__), (void*)(&__Val2__), 23, BITS - 2); __Result__; });
      |                                                                                                                             ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:418:125: error: use of undeclared identifier '__builtin_bit_part_select'
  418 |     man.V = ({ typename _ap_type::remove_const<__typeof__(reg.V)>::type __Result__ = 0; __typeof__(reg.V) __Val2__ = reg.V; __builtin_bit_part_select((void*)(&__Result__), (void*)(&__Val2__), 0, 23 - 1); __Result__; });
      |                                                                                                                             ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:422:156: error: use of undeclared identifier '__builtin_bit_part_set'
  422 |     man.V = ({ typename _ap_type::remove_const<__typeof__(man.V)>::type __Result__ = 0; __typeof__(man.V) __Val2__ = man.V; __typeof__(1) __Repl2__ = !!1; __builtin_bit_part_set((void*)(&__Result__), (void*)(&__Val2__), (void*)(&__Repl2__), 23, 23); __Result__; });
      |                                                                                                                                                            ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:455:76: error: use of undeclared identifier '__builtin_bit_select'; did you mean '__builtin_rotateleft8'?
  455 |     bool is_neg = ({ __typeof__(reg.V) __Val2__ = reg.V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), BITS - 1); __Result__; });
      |                                                                            ^~~~~~~~~~~~~~~~~~~~
      |                                                                            __builtin_rotateleft8
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:413:76: note: '__builtin_rotateleft8' declared here
  413 |     bool is_neg = ({ __typeof__(reg.V) __Val2__ = reg.V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), BITS - 1); __Result__; });
      |                                                                            ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:455:97: error: cannot initialize a parameter of type 'unsigned char' with an rvalue of type 'void *'
  455 |     bool is_neg = ({ __typeof__(reg.V) __Val2__ = reg.V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), BITS - 1); __Result__; });
      |                                                                                                 ^~~~~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:457:125: error: use of undeclared identifier '__builtin_bit_part_select'
  457 |     exp.V = ({ typename _ap_type::remove_const<__typeof__(reg.V)>::type __Result__ = 0; __typeof__(reg.V) __Val2__ = reg.V; __builtin_bit_part_select((void*)(&__Result__), (void*)(&__Val2__), 52, BITS - 2); __Result__; });
      |                                                                                                                             ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:460:125: error: use of undeclared identifier '__builtin_bit_part_select'
  460 |     man.V = ({ typename _ap_type::remove_const<__typeof__(reg.V)>::type __Result__ = 0; __typeof__(reg.V) __Val2__ = reg.V; __builtin_bit_part_select((void*)(&__Result__), (void*)(&__Val2__), 0, 52 - 1); __Result__; });
      |                                                                                                                             ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:464:156: error: use of undeclared identifier '__builtin_bit_part_set'
  464 |     man.V = ({ typename _ap_type::remove_const<__typeof__(man.V)>::type __Result__ = 0; __typeof__(man.V) __Val2__ = man.V; __typeof__(1) __Repl2__ = !!1; __builtin_bit_part_set((void*)(&__Result__), (void*)(&__Val2__), (void*)(&__Repl2__), 52, 52); __Result__; });
      |                                                                                                                                                            ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:673:70: error: use of undeclared identifier '__builtin_bit_select'; did you mean '__builtin_rotateleft8'?
  673 |         ({ __typeof__(Base::V) __Val2__ = Base::V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), _AP_W - 1); __Result__; }))
      |                                                                      ^~~~~~~~~~~~~~~~~~~~
      |                                                                      __builtin_rotateleft8
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:413:76: note: '__builtin_rotateleft8' declared here
  413 |     bool is_neg = ({ __typeof__(reg.V) __Val2__ = reg.V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), BITS - 1); __Result__; });
      |                                                                            ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:673:91: error: cannot initialize a parameter of type 'unsigned char' with an rvalue of type 'void *'
  673 |         ({ __typeof__(Base::V) __Val2__ = Base::V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), _AP_W - 1); __Result__; }))
      |                                                                                           ^~~~~~~~~~~~~~~~~~
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:681:164: error: use of undeclared identifier '__builtin_bit_part_set'
  681 |     Base::V = ({ typename _ap_type::remove_const<__typeof__(Base::V)>::type __Result__ = 0; __typeof__(Base::V) __Val2__ = Base::V; __typeof__(0) __Repl2__ = !!0; __builtin_bit_part_set((void*)(&__Result__), (void*)(&__Val2__), (void*)(&__Repl2__), i, i); __Result__; });
      |                                                                                                                                                                    ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:686:77: error: use of undeclared identifier '__builtin_bit_select'; did you mean '__builtin_rotateleft8'?
  686 |     bool val = ({ __typeof__(Base::V) __Val2__ = Base::V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), i); __Result__; });
      |                                                                             ^~~~~~~~~~~~~~~~~~~~
      |                                                                             __builtin_rotateleft8
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:413:76: note: '__builtin_rotateleft8' declared here
  413 |     bool is_neg = ({ __typeof__(reg.V) __Val2__ = reg.V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), BITS - 1); __Result__; });
      |                                                                            ^
/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp:686:98: error: cannot initialize a parameter of type 'unsigned char' with an rvalue of type 'void *'
  686 |     bool val = ({ __typeof__(Base::V) __Val2__ = Base::V; bool __Result__ = __builtin_bit_select((void*)(&__Val2__), i); __Result__; });
      |                                                                                                  ^~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
Error while processing /root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp.
E0830 08:01:49.129 tapa.steps.analyze:196] command ('/usr/bin/tapacc', '/root/program/Serpens/build/work.out/csynth/flatten/flatten-01798adc-serpens.cpp', '-top', 'Serpens', '--', '-std=c++17', '-I', '/root/.local/lib/python3.8/site-packages/tapa/../../../src', '-isystem', '/tools/Xilinx/Vitis_HLS/2023.2/include', '-stdlib=libc++', '-isystem', '/usr/lib/llvm-17/include/c++/v1/', '-isystem', '/usr/include/clang/17/include/', '-isystem', '/usr/lib/clang/17/include/') failed with exit code 1

The version of Vitis I used is 2023.2. How can I fix these errors?

@linghaosong
Copy link
Owner

linghaosong commented Aug 30, 2024

The version of Vitis I used is 2023.2. How can I fix these errors?

Please follow the workflow in README, you may want to use 2021.2.

@zhaijiaqi
Copy link
Author

The version of Vitis I used is 2023.2. How can I fix these errors?

Please follow the workflow in README, you may want to use 2021.2.

The same problem occurs when I switch to 2021.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants