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

Fix compilaton of bfloat16 on Windows #4415

Merged
merged 1 commit into from
Nov 24, 2019
Merged

Conversation

hcho3
Copy link
Contributor

@hcho3 hcho3 commented Nov 24, 2019

__declspec(dllexport) should not be part of a function definition. So move TVM_DLL macro to function declaration instead.

@yzhliu
Copy link
Member

yzhliu commented Nov 24, 2019

Thanks @hcho3 would you mind share what was the error you see? just wondering whether it is related to what bothers me recently.

@tqchen tqchen merged commit 34c636d into apache:master Nov 24, 2019
@hcho3 hcho3 deleted the fix_win_build branch November 25, 2019 00:21
@hcho3
Copy link
Contributor Author

hcho3 commented Nov 25, 2019

@yzhliu Here is the compilation error:

3>C:\Users\Administrator\Desktop\NeoLenovoPOCTVMFork\3rdparty\bfloat16\bfloat16.cc(63,60): error C2491: 'FloatToBFloat16_wrapper': definition of dllimport function not allowed
3>C:\Users\Administrator\Desktop\NeoLenovoPOCTVMFork\3rdparty\bfloat16\bfloat16.cc(69,52): error C2491: 'BFloat16ToFloat_wrapper': definition of dllimport function not allowed
1>bfloat16.cc
3>C:\Users\Administrator\Desktop\NeoLenovoPOCTVMFork\3rdparty\bfloat16\bfloat16.cc(75,62): error C2491: 'BFloat16Add_wrapper': definition of dllimport function not allowed

zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Nov 26, 2019
yongwww pushed a commit to neo-ai/tvm that referenced this pull request Nov 26, 2019
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.

3 participants