Skip to content

Many fixes to get unit tests passing on Windows.#7431

Merged
tqchen merged 13 commits into
apache:mainfrom
rkimball:bob/winbuild
Feb 25, 2021
Merged

Many fixes to get unit tests passing on Windows.#7431
tqchen merged 13 commits into
apache:mainfrom
rkimball:bob/winbuild

Conversation

@rkimball

Copy link
Copy Markdown
Contributor

Not everything passes, but much more passes than used to.

  • Fixed some compiler warnings
  • nvcc working on Windows
  • CUDA codegen tests passing

Comment thread python/tvm/contrib/cc.py Outdated
def _windows_compile(output, objects, options):
cmd = ["clang"]
cmd += ["-O2", "-flto=full", "-fuse-ld=lld-link"]
cmd += ["-O2", "-v", "-fvisibility=default", "-export-all-symbols"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we check if we need -export-all-symbols after #6698? I believe we should have marked the life scopes correctly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, there are some debug flags in there too, -v. That line needs to be cleaned up.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK, thanks, please add a comment about the need of debug flags there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The current code in the PR only has the flag -O2. The other flags are not required.

@rkimball rkimball marked this pull request as ready for review February 19, 2021 21:16
@rkimball rkimball requested a review from tqchen February 19, 2021 21:16
@tqchen tqchen merged commit 43b15a8 into apache:main Feb 25, 2021
@tqchen

tqchen commented Feb 25, 2021

Copy link
Copy Markdown
Member

Thanks @rkimball !

Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants