UCLA-VAST / AutoSA

AutoSA: Polyhedral-Based Systolic Array Compiler
MIT License
191 stars 31 forks source link

Error caused by --host-serialize #16

Open zhengyue08 opened 1 year ago

zhengyue08 commented 1 year ago

When I tried to simulate the Convolutional Neural Network (Single Layer, Small) example provided, it generated an error as below

================= IO Grouping Information =================
terminate called after throwing an instance of 'std::out_of_range'
  what():  stoi
[AutoSA] Error: Exit abnormally!

the command is posted below

./autosa ./autosa_tests/cnn/kernel.c \
--config=./autosa_config/autosa_config.json \
--target=autosa_hls_c \
--output-dir=./autosa.tmp/output \
--sa-sizes="{kernel[]->space_time[4];kernel[]->array_part[8,8,4,8];kernel[]->latency[4,2,4];kernel[]->simd[1,1,1,2]}" \
--simd-info=./autosa_tests/cnn/simd_info.json \
--host-serialize \
--no-reverse-order \
--hls

And I found that there are two ways to deal with the error:

  1. remove --host-serialize option from the command.
  2. decrease variable defined in kernel.h.

I want to know how --host-serialize caused this problem, which really made me confused.