Skip to content

Conversation

@mbs-octoml
Copy link
Contributor

It turns out build_module.py will manufacture a host out of thin air, in which case the
warning is Target.canon_target_map_and_host is wrong headed.

Also make sure we only complain if the passed target host is actually used.

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Thank you for the swift fix!

@jwfromm jwfromm merged commit afb67e6 into apache:main May 28, 2022
@mbs-octoml mbs-octoml deleted the mbs-collage-fix-host-msg branch June 1, 2022 19:55
Comment on lines +262 to +266
if target_host is not None:
warnings.warn(
"target_host parameter is going to be deprecated. "
"Please pass in tvm.target.Target(target, host=target_host) instead."
)
Copy link

@rebel-jaehunryu rebel-jaehunryu Aug 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbs-octoml
In ConstantFold pass, target_host is always not None.(host is not None)
So warning message is printed on build time.
I think the above meg is not intended to warn the target which made in internal pass.

I am not perfectly understand canon_target_map_and_host,
So could you check this code block, when applied in constantFold pass.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants