Open zzzDavid opened 4 years ago
We only support up to 255 bits in HeteroCL right now.
@seanlatias what prevents us from allowing wider integer? At the very least, we need to prompt error message instead of letting the tool crash.
I think I mentioned this before, we use 8-bit to store the total bitwidth and thus we can only support up to 255 bits.
If you think this one has a higher priority then I'll fix this first.
Yes, we should fix this issue since we already have a relatively simple solution in mind. I thought this one is different since Niansong is talking about the global input/output.
No, according to his code, he is just generating the code without running the cpu simulation. In this case, we are not limited to numpy and thus we should be able to generate code for larger bitwidth for the global input/output.
Let's be sure to prompt error message. We also need to create test case to check the message.
@zzzDavid should be fixed by #303. Let me know otherwise.
Problem Description
FlexCNN uses 512-bit global input output bus but implementing it in HeteroCL causes TVM error in
src/pass/arg_binder.cc
.hcl.UInt(512)
seems to generateuint0
buffer which causes TVM arg binding problem.Error Message:
Repeat the Error
HeteroCL version: Hecmay/heterocl:fix
Code: zzzDavid:heterocl/samples/flexcnn/flexcnn.py (Needs samples/flexcnn/kernel/*.cpp)
Possible Cause
Argument binding supports only up to 128-bit