Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Runtime] Fix TVM_DLL_EXPORT_TYPED_FUNC to work on Windows #4955

Merged
merged 2 commits into from
Feb 27, 2020

Conversation

soiferj
Copy link
Contributor

@soiferj soiferj commented Feb 27, 2020

On Windows, it is not valid to define a function in the same statement as declaring it dllexport. This change splits TVM_DLL_EXPORT_PACKED_FUNC into declaration and definition. Only declaration uses TVM_DLL.

I have also verified that this change works on Linux.

@zhiics @comaniac would you be able to take a quick look?

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@soiferj soiferj changed the title [Runtime] Fixed TVM_DLL_EXPORT_TYPED_FUNC to work on Windows [Runtime] Fix TVM_DLL_EXPORT_TYPED_FUNC to work on Windows Feb 27, 2020
@tqchen tqchen merged commit 9db632f into apache:master Feb 27, 2020
@tqchen
Copy link
Member

tqchen commented Feb 27, 2020

Thanks @jonso4 @comaniac !

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Apr 16, 2020
* [Runtime] Fixed TVM_DLL_EXPORT_TYPED_FUNC to work on Windows

* fix style

Co-authored-by: Jon Soifer <[email protected]>
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Apr 17, 2020
* [Runtime] Fixed TVM_DLL_EXPORT_TYPED_FUNC to work on Windows

* fix style

Co-authored-by: Jon Soifer <[email protected]>
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.

4 participants