forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better host handling in CompilationConfig etc
(This is in preparation for apache#9326, which I'm trying to make as small as possible, sorry for the scatter gun.) If no explicit host target is given but the given TargetMap has targets with hosts, try to use those to establish the host_target. Also make sure both the 'legacy' TargetMap representation and the newer representation agree to pointer equality on their targets. That triggered a small change in the Interpreter to make better use of the CompilationConfig. Since Targets are used in ObjectPtrEquality maps AND we tend to call CheckAndUpdateHostConsistency all over the place (I count 65) I had a tricky time debugging failures. Added a ToDebugString() to Target which will include the host, and made sure the pretty printer will use the debug-friendly form when the show_meta_data_ flag is false.
- Loading branch information
1 parent
048994b
commit 63f1375
Showing
9 changed files
with
295 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.