Skip to content

Use parentesis around min and max to enable Windows build#449

Merged
tjruwase merged 3 commits intodeepspeedai:masterfrom
bratao:master
Oct 1, 2020
Merged

Use parentesis around min and max to enable Windows build#449
tjruwase merged 3 commits intodeepspeedai:masterfrom
bratao:master

Conversation

@bratao
Copy link
Copy Markdown
Contributor

@bratao bratao commented Sep 28, 2020

Hello,

Visual C++ defines min and max as macros somewhere in windows.h, and they interfere the use of standard functions min and max.

With those changes I was able to build transformers and sparse_attention on Python 3.8 with a standard Visual Studio Build Tools 2019. I´m still working on changes to setup.py to make it work out of box, but this will be another PR.

@ghost
Copy link
Copy Markdown

ghost commented Sep 28, 2020

CLA assistant check
All CLA requirements met.

@RezaYazdaniAminabadi
Copy link
Copy Markdown
Contributor

Thanks Bruno! 👍

@tjruwase tjruwase merged commit 9557557 into deepspeedai:master Oct 1, 2020
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.

4 participants