cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
326 stars 92 forks source link

stage_map.end() Cannot find Stage for operator placeholder #320

Open hecmay opened 3 years ago

hecmay commented 3 years ago

This is the error mentioned by Mira. The error actually comes from the old TVM part, and it complains that the placeholder op is not found in the stage_map...

This is likely to be caused by the dangling input placeholder not used anywhere... I am checking the error now.

heterocl.tvm._ffi.base.TVMError: [16:24:28] src/schedule/schedule_lang.cc:681: Check failed: it != (*this)->stage_map.end() Cannot find Stage for operator placeholder(placeholder0, 0x55839def8870) in the schedule
Stack trace returned 10 entries:
[bt] (0) /work/shared/users/phd/sx233/heterocl/tvm/lib/libhcl.so(dmlc::StackTrace()+0x1a8) [0x7faedf295218]
[bt] (1) /work/shared/users/phd/sx233/heterocl/tvm/lib/libhcl.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x2a) [0x7faedf29560a]
[bt] (2) /work/shared/users/phd/sx233/heterocl/tvm/lib/libhcl.so(TVM::Schedule::operator[](TVM::Operation const&)+0x265) [0x7faedf43db95]
[bt] (3) /work/shared/users/phd/sx233/heterocl/tvm/lib/libhcl.so(TVM::Schedule::move_to(TVM::Tensor const&, TVM::Stage, Halide::Internal::DeviceType, Halide::Internal::StreamType, int, TVM::Array<Halide::Expr, void>)+0x5f) [0x7faedf460ebf]
[bt] (4) /work/shared/users/phd/sx233/heterocl/tvm/lib/libhcl.so(+0xab7922) [0x7faedf4b6922]
[bt] (5) /work/shared/users/phd/sx233/heterocl/tvm/lib/libhcl.so(TVMFuncCall+0x52) [0x7faedf7b68e2]
[bt] (6) /work/shared/users/phd/sx233/conda/envs/test/lib/python3.6/lib-dynload/../../libffi.so.7(+0x69dd) [0x7faef77909dd]
[bt] (7) /work/shared/users/phd/sx233/conda/envs/test/lib/python3.6/lib-dynload/../../libffi.so.7(+0x6067) [0x7faef7790067]
[bt] (8) /work/shared/users/phd/sx233/conda/envs/test/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so(_ctypes_callproc+0x2ce) [0x7faef0166ede]
[bt] (9) /work/shared/users/phd/sx233/conda/envs/test/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so(+0x13915) [0x7faef0167915]