Skip to content

Error caused by --host-serialize #16

@zhengyue08

Description

@zhengyue08

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions