I encountered numerous warnings while compiling my project, which uses TVM. The warnings are related to macro redefinitions and are as follows:
In file included from /home/juda/tvm/include/tvm/runtime/container/./base.h:28,
from /home/a/tvm/include/tvm/runtime/container/optional.h:29,
from /home/a/tvm/include/tvm/runtime/ndarray.h:28,
from /home/a/liblambda/lib/include/lambda/factors/normalized_price_position.h:3,
from /home/a/liblambda/lib/src/factors/normalized_price_position.cc:1:
/home/a/tvm/include/tvm/runtime/logging.h:695: warning: "DCHECK_NE" redefined
695 | #define DCHECK_NE(x, y) \
|
In file included from /home/a/tvm/include/tvm/runtime/container/./base.h:27,
from /home/a/tvm/include/tvm/runtime/container/optional.h:29,
from /home/a/tvm/include/tvm/runtime/ndarray.h:28,
from /home/a/liblambda/lib/include/lambda/factors/normalized_price_position.h:3,
from /home/a/liblambda/lib/src/factors/normalized_price_position.cc:1:
/home/a/tvm/3rdparty/dmlc-core/include/dmlc/logging.h:247: note: this is the location of the previous definition
247 | #define DCHECK_NE(x, y) CHECK((x) != (y))
These warnings are quite disruptive. Could you please advise if this is a known issue or if there is a recommended way to handle these macro redefinitions?
Thank you for your assistance.