diff --git a/python/tvm/contrib/thrust.py b/python/tvm/contrib/thrust.py index 7fe0077c2b42..8f3178429589 100644 --- a/python/tvm/contrib/thrust.py +++ b/python/tvm/contrib/thrust.py @@ -21,8 +21,6 @@ def maybe_warn(target, func_name): - if get_global_func(func_name, allow_missing=True) and not "thrust" in target.libs: - logging.warning("TVM is built with thrust but thrust is not used.") if "thrust" in target.libs and get_global_func(func_name, allow_missing=True) is None: logging.warning("thrust is requested but TVM is not built with thrust.")