Closed ssmolov closed 3 months ago
Looked into it: compile
-method which is used to translate a kernel accepts a vector
of string
output files' paths and assumes that the vector
is of the same size as the number of all possible output formats (with empty strings for excluded output formats). Normally main.cpp
is responsible for creating a valid vector so general use of Utopia HLS doesn't fail, but the tests still use the old assumption of a single output format (SystemVerilog), so a single element vector
is created, which fails.
I can see several ways of fixing that:
compile
method a "Utopia HLS kernel level"-method rather than "user level"-method.compile
-method wrapper to accept an unordered_map<unsigned, string>
of paths rather than a vector
and make all tests use this implementation. Not only this might fix an issue, this also makes compile
-method a "user level"-method, but I am not sure this is actually good.Fixed.
I've built the project as follows (sorry for absolute paths):
After that I run
build/test/utest
and receive the following error: