Closed hecmay closed 2 years ago
@seanlatias
I don't understand. What do you mean by "function" when turning off the flag? Is the result still correct? Also, according to the error message, it is saying that branch only works on boolean variables. You may be using int or other data types.
I don't understand. What do you mean by "function" when turning off the flag? Is the result still correct? Also, according to the error message, it is saying that branch only works on boolean variables. You may be using int or other data types.
I meant the llvm simulation cannot run through unless the assertion flag is turned off during installation.
Otherwise the llvm simulation exited with that error and I cannot get any result.
This bug is reported from another HCL user -
hcl.assert
only functions when LLVM assertion flag is turned off. Once LLVM assertion flag is turned on,hcl.assert
will result in some unexpected errors.I tried to reproduce this issue after reinstalling HCL with LLVM assertion flag turned on, and here is what i got from one of our regression tests
This specific error seems to be caused by a data type mismatching between an llvm global variable and its initializer here: https://github.com/cornell-zhang/heterocl/blob/master/tvm/src/codegen/llvm/codegen_llvm.cc#L162-L169
I tried to fix this data type mismatching error (when LLVM assertion is enabled), but some other assertion errors will pop up.