Skip to content

[MetaSchedule] Resolve dependencies between header files#11604

Merged
kparzysz-quic merged 2 commits intoapache:mainfrom
kparzysz-quic:meta-scheduler-dependency
Jun 7, 2022
Merged

[MetaSchedule] Resolve dependencies between header files#11604
kparzysz-quic merged 2 commits intoapache:mainfrom
kparzysz-quic:meta-scheduler-dependency

Conversation

@kparzysz-quic
Copy link
Contributor

After PR11590 TVM stopped compiling with clang-14 and libc++. The problems were caused by incomplete types used in contexts where complete types were required. To resolve this, some code had to be moved into .cc files. Also the MeasureCandidate classes needed to be added to their own include files (or otherwise there would be a circular dependency between headers).

All headers from the meta_schedule directory were updated to include all their dependencies (forward declarations were left where appropriate).

After PR11590 TVM stopped compiling with clang-14 and libc++. The problems
were caused by incomplete types used in contexts where complete types were
required. To resolve this, some code had to be moved into .cc files. Also
the MeasureCandidate classes needed to be added to their own include files
(or otherwise there would be a circular dependency between headers).

All headers from the meta_schedule directory were updated to include all
their dependencies (forward declarations were left where appropriate).
@kparzysz-quic kparzysz-quic requested a review from junrushao June 7, 2022 16:26
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.

Probably I overlooked some dependency issues. Thanks for the swift fix!

@junrushao
Copy link
Member

Would you mind if I quickly send some commits in this PR if it’s blocking work from your org?

@kparzysz-quic
Copy link
Contributor Author

Sure, go ahead.

@kparzysz-quic
Copy link
Contributor Author

It's gone through CI, so I'm going to merge it.

@kparzysz-quic kparzysz-quic merged commit 8170219 into apache:main Jun 7, 2022
@kparzysz-quic kparzysz-quic deleted the meta-scheduler-dependency branch June 7, 2022 18:38
@junrushao
Copy link
Member

Thanks @kparzysz-quic!! Sorry for the weird issues introduced by my previous PR!

Kathryn-cat pushed a commit to Kathryn-cat/tvm that referenced this pull request Jun 10, 2022
* [MetaSchedule] Resolve dependencies between header files

After PR11590 TVM stopped compiling with clang-14 and libc++. The problems
were caused by incomplete types used in contexts where complete types were
required. To resolve this, some code had to be moved into .cc files. Also
the MeasureCandidate classes needed to be added to their own include files
(or otherwise there would be a circular dependency between headers).

All headers from the meta_schedule directory were updated to include all
their dependencies (forward declarations were left where appropriate).

* Fix a typo: PySpaceGeneratorCode -> PySpaceGeneratorNode
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.

2 participants

Comments